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
This commit is contained in:
Tom Lane 2017-04-15 14:11:15 -04:00
parent 0eba6be1b8
commit 083dc95a14

View File

@ -897,7 +897,7 @@ hashbucketcleanup(Relation rel, Bucket cur_bucket, Buffer bucket_buf,
* flag. * flag.
*/ */
if (tuples_removed && *tuples_removed > 0 && 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; opaque->hasho_flag &= ~LH_PAGE_HAS_DEAD_TUPLES;
clear_dead_marking = true; clear_dead_marking = true;