os/bluestore: do not leak when using EnvMirror

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-09-28 13:56:51 -04:00
parent 2a4b87f33c
commit 85fc102895

View File

@ -3052,7 +3052,7 @@ int BlueStore::_open_db(bool create)
int r = system(cmd.c_str());
(void)r;
}
env = new rocksdb::EnvMirror(b, a);
env = new rocksdb::EnvMirror(b, a, false, true);
} else {
env = new BlueRocksEnv(bluefs);