Signed-off-by: Neha Ojha <nojha@redhat.com>
{
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<double>("osd_recovery_sleep_hybrid");
else
- return cct->_conf->osd_recovery_sleep_ssd;
+ return cct->_conf->osd_recovery_sleep_hdd;
}
int OSD::init()