summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2024-03-05 12:13:12 +0100
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2024-03-05 12:13:12 +0100
commit0d3a71d0c8a762247cf558cf41847e599a1f5539 (patch)
tree1bf8923a4106794fed96fc745703edaa5a797e16 /src
parent1a2654b32b546d25e39a0c02410049559a3d4573 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/slru.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/slru.c b/src/backend/access/transam/slru.c
index 6895266bf9d..f99ec38a4a1 100644
--- a/src/backend/access/transam/slru.c
+++ b/src/backend/access/transam/slru.c
@@ -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);
}