Content-Length: 257030 | pFad | http://github.com/postgrespro/postgres_cluster/commit/9b7049cb62008c2fc555f94cf78119b94e916d3b

02 cfs: fix cfs_gc_lock · postgrespro/postgres_cluster@9b7049c · GitHub
Skip to content

Commit 9b7049c

Browse files
author
Sokolov Yura
committed
cfs: fix cfs_gc_lock
1 parent 3b855b0 commit 9b7049c

File tree

1 file changed

+1
-1
lines changed
  • src/backend/storage/file

1 file changed

+1
-1
lines changed

src/backend/storage/file/cfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ cfs_gc_lock(pg_atomic_uint32* lock)
631631
uint32 count = pg_atomic_fetch_add_u32(lock, CFS_GC_LOCK);
632632
long delay = CFS_LOCK_MIN_TIMEOUT;
633633

634-
while ((count & (CFS_GC_LOCK-1)) != 1)
634+
while ((count & (CFS_GC_LOCK-1)) != 0)
635635
{
636636
pg_usleep(delay);
637637
count = pg_atomic_read_u32(lock);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/9b7049cb62008c2fc555f94cf78119b94e916d3b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy