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)
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