mirror of
https://github.com/ceph/ceph
synced 2024-12-27 22:13:28 +00:00
FileStore.cc: Make sure str-pointer has not 0x0 when referenced
ceph-osd crashes on reference to where if it is not get_index or lfn_find. So init with an "empty" indicator "() Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
This commit is contained in:
parent
bd77cd4139
commit
e5a2a88926
@ -4929,7 +4929,7 @@ int FileStore::omap_get_values(const coll_t& _c, const ghobject_t &hoid,
|
||||
const coll_t& c = !_need_temp_object_collection(_c, hoid) ? _c : _c.get_temp();
|
||||
dout(15) << __func__ << " " << c << "/" << hoid << dendl;
|
||||
Index index;
|
||||
const char *where = 0;
|
||||
const char *where = "()";
|
||||
int r = get_index(c, &index);
|
||||
if (r < 0) {
|
||||
where = " (get_index)";
|
||||
|
Loading…
Reference in New Issue
Block a user