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

Commit3a54f4a

Browse files
committed
Remove ill-conceived Assertion in ProcessClientWriteInterrupt().
It's perfectly fine to have blocked interrupts whenProcessClientWriteInterrupt() is called. In fact it's commonly thecase when emitting error reports. And we deal with that correctly.Even if that'd not be the case, it'd be a bad location for such aassertion. Because ProcessClientWriteInterrupt() is only called whenthe socket is blocked it's hard to hit.Per Heikki and buildfarm animals nightjar and dunlin.
1 parent2505ce0 commit3a54f4a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,6 @@ ProcessClientWriteInterrupt(bool blocked)
571571
{
572572
intsave_errno=errno;
573573

574-
Assert(InterruptHoldoffCount==0&&CritSectionCount==0);
575-
576574
/*
577575
* We only want to process the interrupt here if socket writes are
578576
* blocking to increase the chance to get an error message to the

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp