summaryrefslogtreecommitdiffstats
path: root/src/mds/MDSTableServer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds/MDSTableServer.cc')
-rw-r--r--src/mds/MDSTableServer.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mds/MDSTableServer.cc b/src/mds/MDSTableServer.cc
index 00bea5e14f1..b7752468c24 100644
--- a/src/mds/MDSTableServer.cc
+++ b/src/mds/MDSTableServer.cc
@@ -120,10 +120,13 @@ void MDSTableServer::_commit_logged(MMDSTableRequest *req)
void MDSTableServer::handle_rollback(MMDSTableRequest *req)
{
dout(7) << "handle_rollback " << *req << dendl;
- _rollback(req->get_tid());
- _note_rollback(req->get_tid());
+
+ version_t tid = req->get_tid();
+ assert(pending_for_mds.count(tid));
+ _rollback(tid);
+ _note_rollback(tid);
mds->mdlog->start_submit_entry(new ETableServer(table, TABLESERVER_OP_ROLLBACK, 0, -1,
- req->get_tid(), version));
+ tid, version));
req->put();
}