Add some missing stats counter bumps.
authorRobert Haas <rhaas@postgresql.org>
Wed, 1 Aug 2012 20:24:26 +0000 (20:24 +0000)
committerRobert Haas <rhaas@postgresql.org>
Wed, 1 Aug 2012 20:24:26 +0000 (20:24 +0000)
src/backend/utils/hash/chash.c

index e2f352b7471ded60785a2f0576c38a23ea7f248f..40abd53c482f30f7dddb4f12a7ad38f4b332086d 100644 (file)
@@ -805,9 +805,13 @@ retry:
                        else
                        {
                                /* Someone else removed the item first. */
+                               table->stats.s_cleanup_expunge_fail++;
                                target = *pointer_to_target;
                                if (CHashPtrIsMarked(target))
+                               {
+                                       table->stats.s_cleanup_restart++;
                                        goto retry;
+                               }
                        }
                        continue;
                }