]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: don't call mdlog->flush() in Server::early_reply()
authorYan, Zheng <zyan@redhat.com>
Thu, 21 Jul 2016 09:17:15 +0000 (17:17 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 22 Jul 2016 02:24:41 +0000 (10:24 +0800)
Server::journal_and_reply() calls mdlog->flush() if early reply
is not allowed.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/Server.cc

index 445ca7e2b857c7a150a15990ab4093fe1cd936f9..bae791b051631617ec123bdd442ccf61552549b6 100644 (file)
@@ -1045,7 +1045,6 @@ void Server::early_reply(MDRequestRef& mdr, CInode *tracei, CDentry *tracedn)
 
   if (mdr->has_more() && mdr->more()->has_journaled_slaves) {
     dout(10) << "early_reply - there are journaled slaves, not allowed." << dendl;
-    mds->mdlog->flush();
     return; 
   }
 
@@ -1061,7 +1060,6 @@ void Server::early_reply(MDRequestRef& mdr, CInode *tracei, CDentry *tracedn)
 
   if (req->is_replay()) {
     dout(10) << " no early reply on replay op" << dendl;
-    mds->mdlog->flush();
     return;
   }