Fix misspelled assertions
Remove an extra & operator, per Tom Lane. My bugs, introduced with commit 53c2a97a9266. Discussion: https://postgr.es/m/3885480.1709590472@sss.pgh.pa.us
This commit is contained in:
parent
1a2654b32b
commit
0d3a71d0c8
@ -433,7 +433,7 @@ SimpleLruWaitIO(SlruCtl ctl, int slotno)
|
||||
SlruShared shared = ctl->shared;
|
||||
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 */
|
||||
LWLockRelease(&shared->bank_locks[bankno].lock);
|
||||
@ -714,7 +714,7 @@ SlruInternalWritePage(SlruCtl ctl, int slotno, SlruWriteAll fdata)
|
||||
void
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user