Commit 2a354496 authored by Andres Freund's avatar Andres Freund

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
parent 7bd149ce
......@@ -3004,7 +3004,7 @@ FlushOneBuffer(Buffer buffer)
bufHdr = GetBufferDescriptor(buffer - 1);
LWLockHeldByMe(bufHdr->content_lock);
Assert(LWLockHeldByMe(bufHdr->content_lock));
FlushBuffer(bufHdr, NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment