Skip to content

Commit 37ffa35

Browse files
author
Sokolov Yura
committed
cfs xlog.c: release cfs_control_gc earlier in do_pg_stop_backup
1 parent c6fbf99 commit 37ffa35

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10473,6 +10473,8 @@ do_pg_stop_backup(char *labelfile, bool waitforarchive, TimeLineID *stoptli_p)
1047310473
/* Clean up session-level lock */
1047410474
sessionBackupState = SESSION_BACKUP_NONE;
1047510475

10476+
cfs_control_gc(SavedGCState); /* Restore CFS GC activity */
10477+
1047610478
/*
1047710479
* Read and parse the START WAL LOCATION line (this code is pretty crude,
1047810480
* but we are not expecting any variability in the file format).
@@ -10682,8 +10684,6 @@ do_pg_stop_backup(char *labelfile, bool waitforarchive, TimeLineID *stoptli_p)
1068210684
ereport(NOTICE,
1068310685
(errmsg("WAL archiving is not enabled; you must ensure that all required WAL segments are copied through other means to complete the backup")));
1068410686

10685-
cfs_control_gc(SavedGCState); /* Restore CFS GC activity */
10686-
1068710687
/*
1068810688
* We're done. As a convenience, return the ending WAL location.
1068910689
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy