From 267f4a7bb5a1f48321e8f71c8ae8fcff2110dbba Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 26 Jul 2012 23:51:08 -0400 Subject: [PATCH] Bug fixes. --- src/backend/utils/hash/chash.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/utils/hash/chash.c b/src/backend/utils/hash/chash.c index 4232294fd8..52c5cc5b07 100644 --- a/src/backend/utils/hash/chash.c +++ b/src/backend/utils/hash/chash.c @@ -613,7 +613,8 @@ zap: * all non-deleted items (and possibly some deleted items) * that were present at the time we began the scan. */ - /* XXX We must put target on a garbage list now! */ + CHashAddToGarbage(table, hashcode & table->bucket_mask, + target); target = next; continue; } @@ -686,6 +687,8 @@ zap: next = target_node->next; if (CHashPtrIsMarked(next)) goto zap; + res->found = false; + break; } } -- 2.39.5