]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: never forward messages for the client
authorSage Weil <sage@newdream.net>
Fri, 28 Aug 2009 03:27:45 +0000 (20:27 -0700)
committerSage Weil <sage@newdream.net>
Fri, 28 Aug 2009 03:27:45 +0000 (20:27 -0700)
Otherwise we won't be sure they have a session.. and the reply might not
make it back!

src/mds/MDS.cc

index 00f91b0cd7a65b34e444ed6577c42313f571fd7b..fb1efddd429b995db6cb2cfb64b477f6fea05a9d 100644 (file)
@@ -325,7 +325,8 @@ void MDS::forward_message_mds(Message *m, int mds)
      * the affected metadata may migrate, in which case the new authority
      * won't have the metareq_id in the completed request map.
      */
-    bool client_must_resend = !creq->can_forward();
+    // NEW: always make the client resend!  
+    bool client_must_resend = true;  //!creq->can_forward();
 
     // tell the client where it should go
     messenger->send_message(new MClientRequestForward(creq->get_tid(), mds, creq->get_num_fwd(),