Code cleanup.
authorRobert Haas <rhaas@postgresql.org>
Wed, 1 Aug 2012 15:56:30 +0000 (15:56 +0000)
committerRobert Haas <rhaas@postgresql.org>
Wed, 1 Aug 2012 15:56:30 +0000 (15:56 +0000)
src/backend/utils/hash/chash.c

index 06c2a1d988a9731a7cd61286899b8c5fbaa1f920..2aa47a3720b007f25769b1292afc07dc72850ce0 100644 (file)
@@ -876,7 +876,7 @@ CHashAllocate(CHashTable table)
                if (CHashPtrIsInvalid(garbage))
                        ;
                else if (!__sync_bool_compare_and_swap(b, garbage, InvalidCHashPtr))
-                       ++table->stats.s_gc_pop_fail;
+                       table->stats.s_gc_pop_fail++;
                else
                {
                        uint64          chash_bucket;
@@ -936,7 +936,7 @@ CHashAllocate(CHashTable table)
                                        n->un.gcnext = oldhead;
                                        if (__sync_bool_compare_and_swap(b, oldhead, fhead))
                                                break;
-                                       ++table->stats.s_gc_reclaim_retry;
+                                       table->stats.s_gc_reclaim_retry++;
                                }
                        }
 
@@ -977,7 +977,7 @@ CHashAddToGarbage(CHashTable table, uint32 bucket, CHashPtr c)
                n->un.gcnext = g;
                if (__sync_bool_compare_and_swap(garbage, g, c))
                        break;
-               ++table->stats.s_garbage_retry;
+               table->stats.s_garbage_retry++;
        }
 }
 
@@ -1007,6 +1007,6 @@ CHashImmediateFree(CHashTable table, CHashPtr c)
                n->un.gcnext = f;
                if (__sync_bool_compare_and_swap(free, f, c))
                        break;
-               ++table->stats.s_free_retry;
+               table->stats.s_free_retry++;
        }
 }