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

Commit819acea

Browse files
committed
Correct statement to actually be the intended assert statement.
e3f4cfc introduced a LWLockHeldByMe() call, without the correspondingAssert() surrounding it.Spotted by Coverity.Backpatch: 9.1+, like the previous commit
1 parent38a4a42 commit819acea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ FlushOneBuffer(Buffer buffer)
25642564

25652565
bufHdr=&BufferDescriptors[buffer-1];
25662566

2567-
LWLockHeldByMe(bufHdr->content_lock);
2567+
Assert(LWLockHeldByMe(bufHdr->content_lock));
25682568

25692569
FlushBuffer(bufHdr,NULL);
25702570
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp