From e582135c570d8e960778fe034549ac23c8a17621 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 7 Dec 2014 09:02:04 -0800 Subject: [PATCH] os/FileStore: better debug on omap_setkeys Signed-off-by: Sage Weil --- src/os/FileStore.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 2a4de80fdbe..7c39e1094d5 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -4998,16 +4998,22 @@ int FileStore::_omap_setkeys(coll_t cid, const ghobject_t &hoid, dout(15) << __func__ << " " << cid << "/" << hoid << dendl; Index index; int r = get_index(cid, &index); - if (r < 0) + if (r < 0) { + dout(20) << __func__ << " get_index got " << cpp_strerror(r) << dendl; return r; + } { assert(NULL != index.index); RWLock::RLocker l((index.index)->access_lock); r = lfn_find(hoid, index); - if (r < 0) + if (r < 0) { + dout(20) << __func__ << " lfn_find got " << cpp_strerror(r) << dendl; return r; + } } - return object_map->set_keys(hoid, aset, &spos); + r = object_map->set_keys(hoid, aset, &spos); + dout(20) << __func__ << " " << cid << "/" << hoid << " = " << r << dendl; + return r; } int FileStore::_omap_rmkeys(coll_t cid, const ghobject_t &hoid, -- 2.47.3