mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Fix misspelled assertions
Remove an extra & operator, per Tom Lane. My bugs, introduced with
commit 53c2a97a92
.
Discussion: https://postgr.es/m/3885480.1709590472@sss.pgh.pa.us
This commit is contained in:
@ -433,7 +433,7 @@ SimpleLruWaitIO(SlruCtl ctl, int slotno)
|
|||||||
SlruShared shared = ctl->shared;
|
SlruShared shared = ctl->shared;
|
||||||
int bankno = SlotGetBankNumber(slotno);
|
int bankno = SlotGetBankNumber(slotno);
|
||||||
|
|
||||||
Assert(&shared->page_status[slotno] != SLRU_PAGE_EMPTY);
|
Assert(shared->page_status[slotno] != SLRU_PAGE_EMPTY);
|
||||||
|
|
||||||
/* See notes at top of file */
|
/* See notes at top of file */
|
||||||
LWLockRelease(&shared->bank_locks[bankno].lock);
|
LWLockRelease(&shared->bank_locks[bankno].lock);
|
||||||
@ -714,7 +714,7 @@ SlruInternalWritePage(SlruCtl ctl, int slotno, SlruWriteAll fdata)
|
|||||||
void
|
void
|
||||||
SimpleLruWritePage(SlruCtl ctl, int slotno)
|
SimpleLruWritePage(SlruCtl ctl, int slotno)
|
||||||
{
|
{
|
||||||
Assert(&ctl->shared->page_status[slotno] != SLRU_PAGE_EMPTY);
|
Assert(ctl->shared->page_status[slotno] != SLRU_PAGE_EMPTY);
|
||||||
|
|
||||||
SlruInternalWritePage(ctl, slotno, NULL);
|
SlruInternalWritePage(ctl, slotno, NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user