From: Willem Jan Withagen Date: Tue, 26 Apr 2016 15:09:22 +0000 (+0200) Subject: FileStore.cc: Make sure str-pointer has not 0x0 when referenced X-Git-Tag: v11.0.0~718^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e5a2a889260aabd5f22e129cc274363afaf8a3f6;p=ceph.git 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 --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 95d7bc08739b..eef82b72618d 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -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)";