Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)