From 4aa0f8a274a29e18f3f7dbc40372871365ea7659 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 14 Mar 2013 16:01:57 -0700 Subject: [PATCH] FileStore: add more debugging for remove and split Signed-off-by: Samuel Just --- src/os/FileStore.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index e61d489e89f..c0942a5e637 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -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::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::iterator i = objects.begin(); i != objects.end(); ++i) { + dout(20) << __func__ << ": " << *i << " now in dest " + << *i << dendl; assert(i->match(bits, rem)); } objects.clear(); -- 2.47.3