summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2013-09-19 13:42:41 +0800
committerYan, Zheng <zheng.z.yan@intel.com>2013-09-24 08:45:55 +0800
commit70a933b2be9427a1385fd36b172e931b0d4a1303 (patch)
tree07280848f266d68bedefaa189df43e0338f08c0e
parent53c115daa7b4914bbc12a9f83dda8910da9d457d (diff)
downloadceph-70a933b2be9427a1385fd36b172e931b0d4a1303.tar.gz
mds: fix MDCache::merge_dir()
fragment 'bits' should be negative for the merging case. Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
-rw-r--r--src/mds/MDCache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc
index 994b9916114..8fe255d0345 100644
--- a/src/mds/MDCache.cc
+++ b/src/mds/MDCache.cc
@@ -10942,7 +10942,7 @@ void MDCache::merge_dir(CInode *diri, frag_t frag)
dout(10) << " we are merginb by " << bits << " bits" << dendl;
C_GatherBuilder gather(g_ceph_context,
- new C_MDC_FragmentFrozen(this, dirs, frag, bits));
+ new C_MDC_FragmentFrozen(this, dirs, frag, -bits));
fragment_freeze_dirs(dirs, gather);
gather.activate();