osd: Return correct osd_objectstore in OSD metadata

Do not simply read the configuration value as it might have changed
during OSD startup by reading the type from disk.

Fixes: http://tracker.ceph.com/issues/18638

Signed-off-by: Wido den Hollander <wido@42on.com>
This commit is contained in:
Wido den Hollander 2017-01-23 21:06:05 +01:00
parent 65f5187e42
commit 8fe6a0303b
No known key found for this signature in database
GPG Key ID: 019B582DDB3ECA42

View File

@ -5115,7 +5115,7 @@ void OSD::_collect_metadata(map<string,string> *pm)
(*pm)["hb_back_addr"] = stringify(hb_back_server_messenger->get_myaddr());
// backend
(*pm)["osd_objectstore"] = cct->_conf->osd_objectstore;
(*pm)["osd_objectstore"] = store->get_type();
store->collect_metadata(pm);
collect_sys_info(pm, cct);