Skip to content

Commit 8f1267c

Browse files
committed
remove hand-made asserts
1 parent 6d1b38b commit 8f1267c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/backend/utils/cache/inval.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ LocalExecuteInvalidationMessage(SharedInvalidationMessage *msg)
604604
InvalidateCatalogSnapshot();
605605
}
606606
else {
607-
*(int*) 0 = 0;
608607
elog(FATAL, "unrecognized SI message ID: %d", msg->id);
609608
}
610609
}

src/include/miscadmin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ do { \
115115

116116
#define RESUME_INTERRUPTS() \
117117
do { \
118-
if (InterruptHoldoffCount <= 0) *(int*)0 = 0; \
118+
Assert(InterruptHoldoffCount > 0); \
119119
InterruptHoldoffCount--; \
120120
} while(0)
121121

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy