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

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