projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
580ea61
)
Move check if (shutdown_requested) inside recoveryStopsHere() so that it occurs immed...
author
Simon Riggs
<
[email protected]
>
Wed, 18 Feb 2009 11:10:55 +0000
(11:10 +0000)
committer
Simon Riggs
<
[email protected]
>
Wed, 18 Feb 2009 11:10:55 +0000
(11:10 +0000)
src/backend/access/transam/xlog.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/transam/xlog.c
b/src/backend/access/transam/xlog.c
index 39df968fff37121dea0c910cd7e1421229e6cd0e..7bbae2d3690445fc592a41aefc09fa578eef0089 100644
(file)
--- a/
src/backend/access/transam/xlog.c
+++ b/
src/backend/access/transam/xlog.c
@@
-5003,6
+5003,13
@@
recoveryStopsHere(XLogRecord *record, bool *includeThis)
CHECK_FOR_INTERRUPTS();
+ /*
+ * Check if we were requested to exit without finishing
+ * recovery.
+ */
+ if (shutdown_requested)
+ proc_exit(0);
+
/*
* Let's see if user has updated our recoveryTargetMode.
*/
@@
-5970,13
+5977,6
@@
StartupXLOG(void)
}
#endif
- /*
- * Check if we were requested to exit without finishing
- * recovery.
- */
- if (shutdown_requested)
- proc_exit(0);
-
/*
* Have we reached our safe starting point? If so, we can
* tell postmaster that the database is consistent now.