]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
kv/LevelDBStore: fix incorrect ceph_abort_msg() usage
authorJerry Lee <leisurelysw24@gmail.com>
Fri, 25 Dec 2020 09:00:22 +0000 (17:00 +0800)
committerJerry Lee <leisurelysw24@gmail.com>
Fri, 25 Dec 2020 09:08:47 +0000 (17:08 +0800)
commitbfd9cb33b4781b780cae6ea46bed248b3f8499e3
treefcb79c7a18f5f11d68827f62a4ff9394cd8379d0
parentfd2f92fd444775aa13b98076de49703d8a6eb7a2
kv/LevelDBStore: fix incorrect ceph_abort_msg() usage

Compile error is encountered when HAVE_LEVELDB_FILTER_POLICY is not
defined.

/ceph/src/kv/LevelDBStore.cc: In member function 'int LevelDBStore::load_leveldb_options(bool, leveldb::Options&)':
/ceph/src/kv/LevelDBStore.cc:96:22: error: invalid initialization of reference of type 'const string& {aka const std::__cxx11::basic_string<char>&}' from expression of type 'bool'ceph_abort_msg(0 == "bloom size set but installed leveldb doesn't support bloom filters");
                    ~~^~~~
/ceph/src/include/ceph_assert.h:90:69: note: in definition of macro 'ceph_abort_msg'
   ::ceph::__ceph_abort( __FILE__, __LINE__, __CEPH_ASSERT_FUNCTION, msg)
                                                                     ^~~
/ceph/src/include/ceph_assert.h:62:19: note: in passing argument 4 of 'void ceph::__ceph_abort(const char*, int, const char*, const string&)'
 [[noreturn]] void __ceph_abort(const char *file, int line, const char *func,
                   ^~~~~~~~~~~~
src/kv/CMakeFiles/kv.dir/build.make:130: recipe for target 'src/kv/CMakeFiles/kv.dir/LevelDBStore.cc.o' failed

Signed-off-by: Jerry Lee <leisurelysw24@gmail.com>
src/kv/LevelDBStore.cc