]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: do not finish_scatter_gather_update_accounted on dirfraglock
authorSage Weil <sage@newdream.net>
Thu, 21 Oct 2010 19:48:07 +0000 (12:48 -0700)
committerSage Weil <sage@newdream.net>
Thu, 21 Oct 2010 19:48:07 +0000 (12:48 -0700)
This needs to match finish_scatter_gather_update, and we don't
update/project the dirfrag there.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/CInode.cc

index 19131b5e55d804d2223a9993501c27774458ed33..6311f39c30e780c0393e873565b2934f1c43c71e 100644 (file)
@@ -1575,6 +1575,9 @@ void CInode::finish_scatter_gather_update_accounted(int type, Mutation *mut, EMe
     CDir *dir = p->second;
     if (!dir->is_auth())
       continue;
+    
+    if (type == CEPH_LOCK_IDFT)
+      continue;  // nothing to do.
 
     dout(10) << " journaling updated frag accounted_ on " << *dir << dendl;
     assert(dir->is_projected());