Fix condition in e9e441c9fac6cbc0510cded6abb9d0e6b646ecaf
authorTeodor Sigaev <teodor@sigaev.ru>
Sat, 2 Apr 2016 15:36:46 +0000 (18:36 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Sat, 2 Apr 2016 15:38:16 +0000 (18:38 +0300)
Comment is right, but if - not.

contrib/bloom/blvacuum.c

index d2703b02b2c82eb72d462cec88b369e25d3e9a7b..19c010c2524519fe00605e1e17c483c976917cb7 100644 (file)
@@ -112,7 +112,7 @@ blbulkdelete(IndexVacuumInfo *info, IndexBulkDeleteResult *stats,
         * Add page to notFullPage list if we will not mark page as deleted and
         * there is a free space on it
         */
-       if (BloomPageGetMaxOffset(page) == 0 &&
+       if (BloomPageGetMaxOffset(page) != 0 &&
            BloomPageGetFreeSpace(&state, page) > state.sizeOfBloomTuple &&
            countPage < BloomMetaBlockN)
            notFullPage[countPage++] = blkno;