Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f1267c

Browse files
committed
remove hand-made asserts
1 parent6d1b38b commit8f1267c

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
#defineRESUME_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)

[8]ページ先頭

©2009-2025 Movatter.jp