From e5a2a889260aabd5f22e129cc274363afaf8a3f6 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Tue, 26 Apr 2016 17:09:22 +0200 Subject: [PATCH] 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 --- src/os/filestore/FileStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 95d7bc08739..eef82b72618 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)";