]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: Don't update mon cache settings if rocksdb is not used 32520/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Fri, 3 Jan 2020 09:26:13 +0000 (14:56 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Tue, 7 Jan 2020 10:25:02 +0000 (15:55 +0530)
commit9ca8059cf2841f8b6e51c1ab83cdf9e7bd3ebda8
treefb9379023ed6a6cd7f5ab5fe27a31b0775fd3de8
parentdef29c02024a902ad2b27cb14782cc61c1b38a90
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>
(cherry picked from commit b9e7a7af98ca284f4febc37fede58345ecb8a1d1)
src/mon/OSDMonitor.cc