]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FileStore: better debug on omap_setkeys 2976/head
authorSage Weil <sage@redhat.com>
Sun, 7 Dec 2014 17:02:04 +0000 (09:02 -0800)
committerSage Weil <sage@redhat.com>
Wed, 17 Dec 2014 01:07:59 +0000 (17:07 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/FileStore.cc

index 2a4de80fdbe1ae17c2a506fab4246a88b68007b4..7c39e1094d5bb8a76327740873e20c8b5931a828 100644 (file)
@@ -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,