Reorganize fields to match comments.
authorRobert Haas <rhaas@postgresql.org>
Fri, 3 Aug 2012 15:35:57 +0000 (15:35 +0000)
committerRobert Haas <rhaas@postgresql.org>
Fri, 3 Aug 2012 15:35:57 +0000 (15:35 +0000)
src/backend/utils/hash/chash.c

index 36a619babeec9b5881492e72fe32cc39cd0c0211..702b1ff53010f45a3047ed382d30131bc78223e9 100644 (file)
@@ -148,7 +148,6 @@ typedef struct CHashTableData
        uint32                  bucket_mask;    /* # of buckets, minus one */
        uint32                  garbage_shift;  /* log2(nbuckets/ngarbage) */
        uint32                  ngarbage;               /* # of garbage lists, a power of two */
-       int                             gc_pid;                 /* PID that set gc_next */
        uint32                  nfreelists;             /* # of freelists */
        uint32                  arena_limit;    /* # of arena elements */
        uint32                  arena_stride;   /* bytes allocated per arena element */
@@ -159,8 +158,9 @@ typedef struct CHashTableData
 
        /*
         * These fields will be different in each backend; the shared copy is
-        * unused.
+        * irrelevant.
         */
+       int                             gc_pid;                 /* PID that set gc_next */
        uint32                  gc_next;                /* next garbage list to reclaim */
        uint64                  stats[CHS_NumberOfStatistics];  /* statistics */
 } CHashTableData;