Skip to content

Commit d9d411b

Browse files
author
Sokolov Yura
committed
write barrier before reset gc_active
1 parent 9b7049c commit d9d411b

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

src/backend/storage/file/cfs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,10 @@ static bool cfs_recover(FileMap* map, int md,
607607
unlink(map_bck_path);
608608
}
609609
if (ok)
610+
{
611+
pg_write_barrier();
610612
pg_atomic_write_u32(&map->gc_active, false); /* clear the GC flag */
613+
}
611614
return ok;
612615
}
613616

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