Content-Length: 282842 | pFad | http://github.com/postgrespro/postgres_cluster/commit/8f1267cb1af7ad512a0efe0858dff09eb8c18d03

21 remove hand-made asserts · postgrespro/postgres_cluster@8f1267c · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/8f1267cb1af7ad512a0efe0858dff09eb8c18d03

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy