Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)