Skip to content

Commit e4b27b5

Browse files
committed
Change initial use of pg_atomic_write_u64 to init
This only matters when using atomics emulation with semaphores. Per buildfarm member rorqual.
1 parent d172b71 commit e4b27b5

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/slru.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ SimpleLruInit(SlruCtl ctl, const char *name, int nslots, int nlsns,
240240
shared->lsn_groups_per_page = nlsns;
241241

242242
shared->cur_lru_count = 0;
243-
pg_atomic_write_u64(&shared->latest_page_number, 0);
243+
pg_atomic_init_u64(&shared->latest_page_number, 0);
244244

245245
shared->slru_stats_idx = pgstat_get_slru_index(name);
246246

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