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:
Alvaro Herrera 2024-03-05 12:13:12 +01:00
parent 1a2654b32b
commit 0d3a71d0c8
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}