mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +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:
@ -445,7 +445,7 @@ BootStrapCLOG(void)
|
||||
slotno = ZeroCLOGPage(0, false);
|
||||
|
||||
/* Make sure it's written out */
|
||||
SimpleLruWritePage(ClogCtl, slotno, NULL);
|
||||
SimpleLruWritePage(ClogCtl, slotno);
|
||||
Assert(!ClogCtl->shared->page_dirty[slotno]);
|
||||
|
||||
LWLockRelease(CLogControlLock);
|
||||
@ -698,7 +698,7 @@ clog_redo(XLogRecPtr lsn, XLogRecord *record)
|
||||
LWLockAcquire(CLogControlLock, LW_EXCLUSIVE);
|
||||
|
||||
slotno = ZeroCLOGPage(pageno, false);
|
||||
SimpleLruWritePage(ClogCtl, slotno, NULL);
|
||||
SimpleLruWritePage(ClogCtl, slotno);
|
||||
Assert(!ClogCtl->shared->page_dirty[slotno]);
|
||||
|
||||
LWLockRelease(CLogControlLock);
|
||||
|
Reference in New Issue
Block a user