]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: defer anchortable updates before CLIENTREPLAY, not ACTIVE
authorSage Weil <sage@newdream.net>
Mon, 26 Jul 2010 17:27:50 +0000 (10:27 -0700)
committerSage Weil <sage@newdream.net>
Mon, 26 Jul 2010 17:27:50 +0000 (10:27 -0700)
Otherwise we hang trying to replay an op that interacts with the
anchortable.

src/mds/MDSTableClient.cc

index 6f87a0eccf694aadbdfd81e4ebde14d80cf62aef..a01390412bd8a51fe5271f2978feb4d2b78059f7 100644 (file)
@@ -146,7 +146,7 @@ void MDSTableClient::_prepare(bufferlist& mutation, version_t *ptid, bufferlist
 void MDSTableClient::send_to_tableserver(MMDSTableRequest *req)
 {
   int ts = mds->mdsmap->get_tableserver();
-  if (mds->mdsmap->get_state(ts) >= MDSMap::STATE_ACTIVE)
+  if (mds->mdsmap->get_state(ts) >= MDSMap::STATE_CLIENTREPLAY)
     mds->send_message_mds(req, ts);
   else {
     dout(10) << " deferring request to not-yet-active tableserver mds" << ts << dendl;