From: Sage Weil Date: Thu, 23 Apr 2015 21:20:39 +0000 (-0700) Subject: os/FileStore: debug error return for get_omap_iterator X-Git-Tag: v9.0.3~52^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a7ea1c7e4053fd94a9a8fc4e03ea773a8dcb161e;p=ceph.git os/FileStore: debug error return for get_omap_iterator Signed-off-by: Sage Weil --- diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index b13f229a998..20950689ebc 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -4956,14 +4956,20 @@ ObjectMap::ObjectMapIterator FileStore::get_omap_iterator(coll_t c, dout(15) << __func__ << " " << c << "/" << hoid << dendl; Index index; int r = get_index(c, &index); - if (r < 0) + if (r < 0) { + dout(10) << __func__ << " " << c << "/" << hoid << " = 0 " + << "(get_index failed with " << cpp_strerror(r) << ")" << dendl; return ObjectMap::ObjectMapIterator(); + } { assert(NULL != index.index); RWLock::RLocker l((index.index)->access_lock); r = lfn_find(hoid, index); - if (r < 0) + if (r < 0) { + dout(10) << __func__ << " " << c << "/" << hoid << " = 0 " + << "(lfn_find failed with " << cpp_strerror(r) << ")" << dendl; return ObjectMap::ObjectMapIterator(); + } } return object_map->get_iterator(hoid); }