Fix misspelled assertions
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 5 Mar 2024 11:13:12 +0000 (12:13 +0100)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 5 Mar 2024 11:13:12 +0000 (12:13 +0100)
Remove an extra & operator, per Tom Lane.  My bugs, introduced with
commit 53c2a97a9266.

Discussion: https://postgr.es/m/3885480.1709590472@sss.pgh.pa.us

src/backend/access/transam/slru.c

index 6895266bf9dff9bcf2f3510dda58a822cb90eff0..f99ec38a4a19c02c6c277dd733edd21b130edfd1 100644 (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);
 }