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:
Andres Freund 2015-12-14 11:23:24 +01:00
parent 7bd149ce2a
commit 2a3544960e
1 changed files with 1 additions and 1 deletions

View File

@ -3004,7 +3004,7 @@ FlushOneBuffer(Buffer buffer)
bufHdr = GetBufferDescriptor(buffer - 1);
LWLockHeldByMe(bufHdr->content_lock);
Assert(LWLockHeldByMe(bufHdr->content_lock));
FlushBuffer(bufHdr, NULL);
}