]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: clear result in BlueRocksEnv::getChildren
authorliuchang0812 <liuchang0812@gmail.com>
Mon, 31 Jul 2017 03:06:58 +0000 (11:06 +0800)
committerliuchang0812 <liuchang0812@gmail.com>
Mon, 31 Jul 2017 05:20:45 +0000 (13:20 +0800)
commit3f5d51ac3c2035b4bd715f807fc210f8e00844fd
treeb26f4e187e16f64de18f905dd9a5171b10286990
parent729cf4467942b54eec9f7e036043fa9fafa08574
os/bluestore: clear result in BlueRocksEnv::getChildren

see https://github.com/facebook/rocksdb/blob/master/env/env_posix.cc#L492. in
rocksdb::env_posix implementation, it will always clear result at first. We will
get a core dump when we use rocksdb::RepairDB if we do not clear result.

Fixes: http://tracker.ceph.com/issues/20857
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
src/os/bluestore/BlueRocksEnv.cc