From 438d77116a61ccc207db5c118221f4d794c84c8a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 29 Jul 2008 21:03:12 -0700 Subject: [PATCH] mds: fix predirty/dirty ordering bug in unlink --- src/mds/Server.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/Server.cc b/src/mds/Server.cc index cf5d3f65f98c2..06ec0a83b2954 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -2993,8 +2993,8 @@ void Server::_unlink_local_finish(MDRequest *mdr, straydn->dir->link_primary_inode(straydn, in); } - mdr->apply(); dn->mark_dirty(dnpv, mdr->ls); + mdr->apply(); // share unlink news with replicas for (map::iterator it = dn->replicas_begin(); -- 2.39.5