]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
FileStore: add more debugging for remove and split
authorSamuel Just <sam.just@inktank.com>
Thu, 14 Mar 2013 23:01:57 +0000 (16:01 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 15 Mar 2013 18:21:01 +0000 (11:21 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/FileStore.cc

index e61d489e89fd69b8f2dd8fac6ba55aff941364a5..c0942a5e63710871ad3eca8b7d937432b4ef1f43 100644 (file)
@@ -345,6 +345,8 @@ int FileStore::lfn_unlink(coll_t cid, const hobject_t& o,
       return r;
     }
     if (st.st_nlink == 1) {
+      dout(20) << __func__ << ": clearing omap on " << o
+              << " in cid " << cid << dendl;
       r = object_map->clear(o, &spos);
       if (r < 0 && r != -ENOENT) {
        assert(!m_filestore_fail_eio || r != -EIO);
@@ -4734,6 +4736,8 @@ int FileStore::_split_collection(coll_t cid,
       for (vector<hobject_t>::iterator i = objects.begin();
           i != objects.end();
           ++i) {
+       dout(20) << __func__ << ": " << *i << " still in source "
+                << cid << dendl;
        assert(!i->match(bits, rem));
       }
       objects.clear();
@@ -4751,6 +4755,8 @@ int FileStore::_split_collection(coll_t cid,
       for (vector<hobject_t>::iterator i = objects.begin();
           i != objects.end();
           ++i) {
+       dout(20) << __func__ << ": " << *i << " now in dest "
+                << *i << dendl;
        assert(i->match(bits, rem));
       }
       objects.clear();