]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix replay of tableclient tids to include in logseg list
authorSage Weil <sage@newdream.net>
Mon, 4 Aug 2008 16:52:24 +0000 (09:52 -0700)
committerSage Weil <sage@newdream.net>
Mon, 4 Aug 2008 16:52:24 +0000 (09:52 -0700)
src/mds/journal.cc

index ae88f86cf3cf5cbebd150790ca3606873a334994..0d45943cd4fb09df97694025b0ccd10252a27d0f 100644 (file)
@@ -473,9 +473,11 @@ void EMetaBlob::replay(MDS *mds, LogSegment *logseg)
   for (list<pair<__u8,version_t> >::iterator p = table_tids.begin();
        p != table_tids.end();
        ++p) {
-    dout(10) << "EMetaBlob.replay noting " << get_mdstable_name(p->first) << " transaction " << p->second << dendl;
+    dout(10) << "EMetaBlob.replay noting " << get_mdstable_name(p->first)
+            << " transaction " << p->second << dendl;
     MDSTableClient *client = mds->get_table_client(p->first);
     client->got_journaled_agree(p->second, logseg);
+    logseg->pending_commit_tids[p->first].insert(p->second);
   }
 
   // allocated_inos