Skip to content

Commit b331607

Browse files
committed
OSDMonitor: Make sure pcm is initialised
If mon_memory_target is set in the config database and mon_memory_autotune is left at default the mon_memory_target change can be lost. Make sure _set_cache_autotuning() is explicity called any time pcm related settings are changed. Fixes: https://tracker.ceph.com/issues/70645 Signed-off-by: Brad Hubbard <[email protected]>
1 parent fc39d9a commit b331607

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mon/OSDMonitor.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ void OSDMonitor::handle_conf_change(const ConfigProxy& conf,
501501
}
502502
if (changed.count("mon_memory_target") ||
503503
changed.count("rocksdb_cache_size")) {
504+
_set_cache_autotuning();
504505
int r = _update_mon_cache_settings();
505506
if (r < 0) {
506507
derr << __func__ << " mon_memory_target:"

0 commit comments

Comments
 (0)