From 139cc382abf57a261cc850d05485205eb4344037 Mon Sep 17 00:00:00 2001 From: Neha Ojha Date: Fri, 4 Aug 2017 11:07:19 -0700 Subject: [PATCH] osd: use recovery sleep hdd for ssd store and hdd journal case Signed-off-by: Neha Ojha --- src/osd/OSD.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index c9702c4577f4a..26fdc69bd5f90 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2357,12 +2357,12 @@ float OSD::get_osd_recovery_sleep() { if (cct->_conf->osd_recovery_sleep) return cct->_conf->osd_recovery_sleep; - if (store_is_rotational && journal_is_rotational) - return cct->_conf->osd_recovery_sleep_hdd; + if (!store_is_rotational && !journal_is_rotational) + return cct->_conf->osd_recovery_sleep_ssd; else if (store_is_rotational && !journal_is_rotational) return cct->_conf->get_val("osd_recovery_sleep_hybrid"); else - return cct->_conf->osd_recovery_sleep_ssd; + return cct->_conf->osd_recovery_sleep_hdd; } int OSD::init() -- 2.39.5