Fix logging in worker_engine
Summary: log before deleting tx object Reviewers: msantl Reviewed By: msantl Differential Revision: https://phabricator.memgraph.io/D1332
This commit is contained in:
parent
3df590a842
commit
86072a993a
@ -63,15 +63,15 @@ command_id_t WorkerEngine::UpdateCommand(transaction_id_t tx_id) {
|
||||
void WorkerEngine::Commit(const Transaction &t) {
|
||||
auto res = master_client_pool_.Call<CommitRpc>(t.id_);
|
||||
CHECK(res) << "CommitRpc failed";
|
||||
ClearSingleTransaction(t.id_);
|
||||
VLOG(11) << "[Tx] Commiting worker transaction " << t.id_;
|
||||
ClearSingleTransaction(t.id_);
|
||||
}
|
||||
|
||||
void WorkerEngine::Abort(const Transaction &t) {
|
||||
auto res = master_client_pool_.Call<AbortRpc>(t.id_);
|
||||
CHECK(res) << "AbortRpc failed";
|
||||
ClearSingleTransaction(t.id_);
|
||||
VLOG(11) << "[Tx] Aborting worker transaction " << t.id_;
|
||||
ClearSingleTransaction(t.id_);
|
||||
}
|
||||
|
||||
CommitLog::Info WorkerEngine::Info(transaction_id_t tid) const {
|
||||
|
Loading…
Reference in New Issue
Block a user