void MDSTableClient::_logged_ack(version_t tid)
{
- dout(10) << "_logged_ack" << dendl;
+ dout(10) << "_logged_ack " << tid << dendl;
assert(pending_commit.count(tid));
assert(pending_commit[tid]->pending_commit_tids[table].count(tid));
void MDSTableClient::got_journaled_agree(version_t tid, LogSegment *ls)
{
+ dout(10) << "got_journaled_agree " << tid << dendl;
ls->pending_commit_tids[table].insert(tid);
pending_commit[tid] = ls;
}
void MDSTableClient::got_journaled_ack(version_t tid)
{
+ dout(10) << "got_journaled_ack " << tid << dendl;
if (pending_commit.count(tid))
pending_commit[tid]->pending_commit_tids[table].erase(tid);
pending_commit.erase(tid);
bufferlist bl = req->bl;
_prepare(req->bl, req->reqid, from);
+ _note_prepare(from, req->reqid);
ETableServer *le = new ETableServer(table, TABLESERVER_OP_PREPARE, req->reqid, from, version, version);
le->mutation = bl; // original request, NOT modified return value coming out of _prepare!
if (pending_for_mds.count(tid)) {
_commit(tid);
+ _note_commit(tid);
mds->mdlog->submit_entry(new ETableServer(table, TABLESERVER_OP_COMMIT, 0, -1, tid, version));
mds->mdlog->wait_for_sync(new C_Commit(this, req));
}