]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
uclient: fix MMDSGetMap 'have' epoch
authorSage Weil <sage@newdream.net>
Wed, 1 Jul 2009 22:25:27 +0000 (15:25 -0700)
committerSage Weil <sage@newdream.net>
Wed, 1 Jul 2009 22:25:27 +0000 (15:25 -0700)
This broke with the monitor changes last week.

src/client/Client.cc

index 40f071e5281c80f2a50249d8fa3be5fd39121ab9..ada89061234844c29ef7432d056cba0310757ba4 100644 (file)
@@ -806,7 +806,7 @@ MClientReply *Client::make_request(MClientRequest *req,
 
       if (!mdsmap->is_active(mds)) {
        dout(10) << "no address for mds" << mds << ", requesting new mdsmap" << dendl;
-       monclient->send_mon_message(new MMDSGetMap(monclient->get_fsid(), mdsmap->get_epoch()+1));
+       monclient->send_mon_message(new MMDSGetMap(monclient->get_fsid(), mdsmap->get_epoch()));
        waiting_for_mdsmap.push_back(&cond);
        cond.Wait(client_lock);