mirror of
https://github.com/ceph/ceph
synced 2025-01-29 14:34:40 +00:00
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:
parent
65f5187e42
commit
8fe6a0303b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user