mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Avoid unnecessary public struct declaration in slru.h
Instead, declare a public wrapper of the sole function using it for external callers, so that they don't have to always pass a NULL argument. Author: Kevin Grittner
This commit is contained in:
@ -507,7 +507,7 @@ AsyncShmemInit(void)
|
||||
LWLockAcquire(AsyncCtlLock, LW_EXCLUSIVE);
|
||||
slotno = SimpleLruZeroPage(AsyncCtl, QUEUE_POS_PAGE(QUEUE_HEAD));
|
||||
/* This write is just to verify that pg_notify/ is writable */
|
||||
SimpleLruWritePage(AsyncCtl, slotno, NULL);
|
||||
SimpleLruWritePage(AsyncCtl, slotno);
|
||||
LWLockRelease(AsyncCtlLock);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user