Skip to content

Commit 77cbc91

Browse files
committed
Fix bug in n_active_gc update
1 parent dbfb4eb commit 77cbc91

File tree

1 file changed

+2
-0
lines changed
  • src/backend/storage/file

1 file changed

+2
-0
lines changed

src/backend/storage/file/cfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,8 @@ static bool cfs_gc_file(char* map_path)
487487
if (cfs_stop || (rc & WL_POSTMASTER_DEATH)) {
488488
exit(1);
489489
}
490+
491+
pg_atomic_fetch_add_u32(&cfs_state->n_active_gc, 1);
490492
}
491493
if (md < 0) {
492494
elog(LOG, "Failed to open map file %s: %m", map_path);

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