mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Change initial use of pg_atomic_write_u64 to init
This only matters when using atomics emulation with semaphores. Per buildfarm member rorqual.
This commit is contained in:
parent
d172b717c6
commit
e4b27b5355
@ -240,7 +240,7 @@ SimpleLruInit(SlruCtl ctl, const char *name, int nslots, int nlsns,
|
||||
shared->lsn_groups_per_page = nlsns;
|
||||
|
||||
shared->cur_lru_count = 0;
|
||||
pg_atomic_write_u64(&shared->latest_page_number, 0);
|
||||
pg_atomic_init_u64(&shared->latest_page_number, 0);
|
||||
|
||||
shared->slru_stats_idx = pgstat_get_slru_index(name);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user