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:
Willem Jan Withagen 2016-04-26 17:09:22 +02:00
parent bd77cd4139
commit e5a2a88926

View File

@ -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)";