]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: Don't update mon cache settings if rocksdb is not used
authorSridhar Seshasayee <sseshasa@redhat.com>
Fri, 3 Jan 2020 09:26:13 +0000 (14:56 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Fri, 3 Jan 2020 09:41:07 +0000 (15:11 +0530)
commitb9e7a7af98ca284f4febc37fede58345ecb8a1d1
treee55553bb8652270a56ae8a08ac882199c01e2b06
parentaafef601f8997c1d38189f27c5afc05f60bedc8b
mon/OSDMonitor: Don't update mon cache settings if rocksdb is not used

Currently any update to mon cache config settings like 'mon_memory_target'
or 'rocksdb_cache_size' will cause a crash in case rocksdb and priority
cache manager is not being used.

If rocksdb (and therefore priority cache manager) is not being used, then
the update to the mon caches is ignored. Also, reduce the log levels of
some important log messages to help in debugging.

Fixes: https://tracker.ceph.com/issues/43454
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
src/mon/OSDMonitor.cc