8000 Correct statement to actually be the intended assert statement. · home201448/postgres@c755b7a · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit c755b7a

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 818a680 commit c755b7a

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

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

2568-
LWLockHeldByMe(bufHdr->content_lock);
2568+
Assert(LWLockHeldByMe(bufHdr->content_lock));
25692569

25702570
FlushBuffer(bufHdr, NULL);
25712571
}

0 commit comments

Comments
 (0)
0