]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kv/RocksDBStore: fix default CF handling 18049/head
authorSage Weil <sage@redhat.com>
Thu, 5 Oct 2017 13:31:04 +0000 (08:31 -0500)
committerSage Weil <sage@redhat.com>
Thu, 5 Oct 2017 19:35:52 +0000 (14:35 -0500)
commitf4e43230222ce67691c1b106a06815e60adc82a3
tree5662c94690203edcf52ac9125f3c25e8000db931
parent6ea96fa9398e2f836c46bedaa9820ec44cdd2907
kv/RocksDBStore: fix default CF handling

We need to close the default CF handle *only* if we explicitly opened it.

Also, take care to use that handle wherever we can.  This is mostly
paranoia--I'm not sure if rocksdb cares if you mix the handle you opened
with DefaultColumnFamily(), which is different.

Signed-off-by: Sage Weil <sage@redhat.com>
src/kv/RocksDBStore.cc
src/kv/RocksDBStore.h