Skip to content

Commit cb89644

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

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
@@ -2943,7 +2943,7 @@ FlushOneBuffer(Buffer buffer)
29432943

29442944
bufHdr = GetBufferDescriptor(buffer - 1);
29452945

2946-
LWLockHeldByMe(bufHdr->content_lock);
2946+
Assert(LWLockHeldByMe(bufHdr->content_lock));
29472947

29482948
FlushBuffer(bufHdr, NULL);
29492949
}

0 commit comments

Comments
 (0)