Content-Length: 257695 | pFad | http://github.com/postgrespro/postgres/commit/e4b27b53552c19c50b3ca00b697a1f745c247d0d

EB Change initial use of pg_atomic_write_u64 to init · postgrespro/postgres@e4b27b5 · GitHub
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)








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/commit/e4b27b53552c19c50b3ca00b697a1f745c247d0d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy