projects
/
users
/
heikki
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20f85bc
)
Correct statement to actually be the intended assert statement.
author
Andres Freund
<
[email protected]
>
Mon, 14 Dec 2015 10:24:53 +0000
(11:24 +0100)
committer
Andres Freund
<
[email protected]
>
Mon, 14 Dec 2015 10:24:53 +0000
(11:24 +0100)
e3f4cfc7
introduced a LWLockHeldByMe() call, without the corresponding
Assert() surrounding it.
Spotted by Coverity.
Backpatch: 9.1+, like the previous commit
src/backend/storage/buffer/bufmgr.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/buffer/bufmgr.c
b/src/backend/storage/buffer/bufmgr.c
index c06b51c9b41b3c47d9efdb0e9c4149ec1bef945e..859c486def98d6aea283063944901f8613fff6bd 100644
(file)
--- a/
src/backend/storage/buffer/bufmgr.c
+++ b/
src/backend/storage/buffer/bufmgr.c
@@
-2253,7
+2253,7
@@
FlushOneBuffer(Buffer buffer)
bufHdr = &BufferDescriptors[buffer - 1];
-
LWLockHeldByMe(bufHdr->content_lock
);
+
Assert(LWLockHeldByMe(bufHdr->content_lock)
);
FlushBuffer(bufHdr, NULL);
}