MB-20746: Delete bloom filter only if temporary filter is created 00/69100/9
authorSriram Ganesan <sriram@couchbase.com>
Sat, 22 Oct 2016 01:09:35 +0000 (18:09 -0700)
committerSriram Ganesan <sriram@couchbase.com>
Tue, 25 Oct 2016 21:57:29 +0000 (21:57 +0000)
commitd4bac37152fd1c07c8a35f1a1a70ad681992c916
tree705535077d1b8c4ab47d649efaa54e3ba63c1b50
parentfde45dac5a64d895c4573d0d8a80d1185fdb7969
MB-20746: Delete bloom filter only if temporary filter is created

During compaction, a temporary filter is only created in the
bloom filter callback function. There is a possibility that this
function will not get invoked if there is no data present during
compaction. So, before swapping the filter, ensure that a temporary
filter is created before deleting the original filter.

Change-Id: I4fcf11d32674be8c28dbda02724b40d3d37e335a
Reviewed-on: http://review.couchbase.org/69100
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Sriram Ganesan <sriram@couchbase.com>
src/vbucket.cc
tests/module_tests/vbucket_test.cc