From: Robert Haas Date: Fri, 27 Jul 2012 03:51:08 +0000 (-0400) Subject: Bug fixes. X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=267f4a7bb5a1f48321e8f71c8ae8fcff2110dbba;p=users%2Frhaas%2Fpostgres.git Bug fixes. --- 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; } }