0002-simplify-the-condition-in-unlock_page.patch
text/x-patch
Filename: 0002-simplify-the-condition-in-unlock_page.patch
Type: text/x-patch
Part: 1
Patch
Format: format-patch
Series: patch 0002
Subject: simplify the condition in 'unlock_page'
| File | + | − |
|---|---|---|
| src/backend/access/hash/hashutil.c | 1 | 2 |
From 8e7e3f6e63c92db8a7d8139ec60c0fdee98830ac Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas <heikki.linnakangas@iki.fi> Date: Tue, 17 Mar 2026 19:08:21 +0200 Subject: [PATCH 2/2] simplify the condition in 'unlock_page' --- src/backend/access/hash/hashutil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/access/hash/hashutil.c b/src/backend/access/hash/hashutil.c index 081adbc88a6..1d1b05f876a 100644 --- a/src/backend/access/hash/hashutil.c +++ b/src/backend/access/hash/hashutil.c @@ -625,8 +625,7 @@ _hash_kill_items(IndexScanDesc scan) } unlock_page: - if (so->hashso_bucket_buf == so->currPos.buf || - havePin) + if (havePin) LockBuffer(so->currPos.buf, BUFFER_LOCK_UNLOCK); else _hash_relbuf(rel, buf); -- 2.47.3