mirror of
https://github.com/postgres/postgres.git
synced 2026-02-27 03:40:28 -05:00
Correct statement to actually be the intended assert statement.
e3f4cfc7 introduced a LWLockHeldByMe() call, without the corresponding
Assert() surrounding it.
Spotted by Coverity.
Backpatch: 9.1+, like the previous commit
This commit is contained in:
parent
38a4a42197
commit
819aceaa0e
1 changed files with 1 additions and 1 deletions
|
|
@ -2564,7 +2564,7 @@ FlushOneBuffer(Buffer buffer)
|
|||
|
||||
bufHdr = &BufferDescriptors[buffer - 1];
|
||||
|
||||
LWLockHeldByMe(bufHdr->content_lock);
|
||||
Assert(LWLockHeldByMe(bufHdr->content_lock));
|
||||
|
||||
FlushBuffer(bufHdr, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue