Summary: When commiting/aborting a transaction in tx master engine, make a two phase commit to all workers so they can stop all futures and clear transactional cache. Reviewers: dgleich, florijan Reviewed By: dgleich Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1320
14 lines
403 B
C++
14 lines
403 B
C++
#pragma once
|
|
|
|
#include "communication/rpc/messages.hpp"
|
|
#include "transactions/type.hpp"
|
|
|
|
namespace distributed {
|
|
|
|
RPC_SINGLE_MEMBER_MESSAGE(WaitOnTransactionEndReq, tx::transaction_id_t);
|
|
RPC_NO_MEMBER_MESSAGE(WaitOnTransactionEndRes);
|
|
using WaitOnTransactionEndRpc =
|
|
communication::rpc::RequestResponse<WaitOnTransactionEndReq,
|
|
WaitOnTransactionEndRes>;
|
|
};
|