Skip to content

Commit 2a35449

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 7bd149c commit 2a35449

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

30053005
bufHdr = GetBufferDescriptor(buffer - 1);
30063006

3007-
LWLockHeldByMe(bufHdr->content_lock);
3007+
Assert(LWLockHeldByMe(bufHdr->content_lock));
30083008

30093009
FlushBuffer(bufHdr, NULL);
30103010
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy