Bug fixes.
authorRobert Haas <rhaas@postgresql.org>
Fri, 27 Jul 2012 03:51:08 +0000 (23:51 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 27 Jul 2012 03:51:08 +0000 (23:51 -0400)
src/backend/utils/hash/chash.c

index 4232294fd8c5ba743f0e5099103c05f8aff62853..52c5cc5b0735dce3c74bbebe307c1003ddf3260d 100644 (file)
@@ -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;
                        }
                }