From 083dc95a14c05bdaeec3015508ca1d16fc7483b5 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sat, 15 Apr 2017 14:11:15 -0400
Subject: [PATCH] More cleanup of manipulations of hash indexes' hasho_flag
 field.

Not much point in defining test macros for the flag bits if we
don't use 'em.

Amit Kapila
---
 src/backend/access/hash/hash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/access/hash/hash.c b/src/backend/access/hash/hash.c
index 80923611bb3..3eb5b1d0d5e 100644
--- a/src/backend/access/hash/hash.c
+++ b/src/backend/access/hash/hash.c
@@ -897,7 +897,7 @@ hashbucketcleanup(Relation rel, Bucket cur_bucket, Buffer bucket_buf,
 			 * flag.
 			 */
 			if (tuples_removed && *tuples_removed > 0 &&
-				opaque->hasho_flag & LH_PAGE_HAS_DEAD_TUPLES)
+				H_HAS_DEAD_TUPLES(opaque))
 			{
 				opaque->hasho_flag &= ~LH_PAGE_HAS_DEAD_TUPLES;
 				clear_dead_marking = true;
-- 
GitLab