Remove rpc message macro semicolon
Summary: Remove semicolon. Semicolon shouldn't be used within macros and should be explicitly provided by the user of the said macro. Reviewers: teon.banek Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1321
This commit is contained in:
parent
b342b09b49
commit
a9dd98f8b9
@ -54,7 +54,7 @@ struct RequestResponse {
|
||||
ar &boost::serialization::base_object<communication::rpc::Message>( \
|
||||
*this); \
|
||||
} \
|
||||
};
|
||||
}
|
||||
|
||||
#define RPC_SINGLE_MEMBER_MESSAGE(name, type) \
|
||||
struct name : public communication::rpc::Message { \
|
||||
@ -71,4 +71,4 @@ struct RequestResponse {
|
||||
*this); \
|
||||
ar &member; \
|
||||
} \
|
||||
};
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
namespace tx {
|
||||
|
||||
RPC_NO_MEMBER_MESSAGE(BeginReq)
|
||||
RPC_NO_MEMBER_MESSAGE(BeginReq);
|
||||
struct TxAndSnapshot {
|
||||
transaction_id_t tx_id;
|
||||
Snapshot snapshot;
|
||||
@ -35,25 +35,25 @@ RPC_SINGLE_MEMBER_MESSAGE(AbortReq, transaction_id_t);
|
||||
RPC_NO_MEMBER_MESSAGE(AbortRes);
|
||||
using AbortRpc = communication::rpc::RequestResponse<AbortReq, AbortRes>;
|
||||
|
||||
RPC_SINGLE_MEMBER_MESSAGE(SnapshotReq, transaction_id_t)
|
||||
RPC_SINGLE_MEMBER_MESSAGE(SnapshotRes, Snapshot)
|
||||
RPC_SINGLE_MEMBER_MESSAGE(SnapshotReq, transaction_id_t);
|
||||
RPC_SINGLE_MEMBER_MESSAGE(SnapshotRes, Snapshot);
|
||||
using SnapshotRpc =
|
||||
communication::rpc::RequestResponse<SnapshotReq, SnapshotRes>;
|
||||
|
||||
RPC_SINGLE_MEMBER_MESSAGE(CommandReq, transaction_id_t)
|
||||
RPC_SINGLE_MEMBER_MESSAGE(CommandRes, command_id_t)
|
||||
RPC_SINGLE_MEMBER_MESSAGE(CommandReq, transaction_id_t);
|
||||
RPC_SINGLE_MEMBER_MESSAGE(CommandRes, command_id_t);
|
||||
using CommandRpc = communication::rpc::RequestResponse<CommandReq, CommandRes>;
|
||||
|
||||
RPC_NO_MEMBER_MESSAGE(GcSnapshotReq)
|
||||
RPC_NO_MEMBER_MESSAGE(GcSnapshotReq);
|
||||
using GcSnapshotRpc =
|
||||
communication::rpc::RequestResponse<GcSnapshotReq, SnapshotRes>;
|
||||
|
||||
RPC_SINGLE_MEMBER_MESSAGE(ClogInfoReq, transaction_id_t)
|
||||
RPC_SINGLE_MEMBER_MESSAGE(ClogInfoRes, CommitLog::Info)
|
||||
RPC_SINGLE_MEMBER_MESSAGE(ClogInfoReq, transaction_id_t);
|
||||
RPC_SINGLE_MEMBER_MESSAGE(ClogInfoRes, CommitLog::Info);
|
||||
using ClogInfoRpc =
|
||||
communication::rpc::RequestResponse<ClogInfoReq, ClogInfoRes>;
|
||||
|
||||
RPC_NO_MEMBER_MESSAGE(ActiveTransactionsReq)
|
||||
RPC_NO_MEMBER_MESSAGE(ActiveTransactionsReq);
|
||||
using ActiveTransactionsRpc =
|
||||
communication::rpc::RequestResponse<ActiveTransactionsReq, SnapshotRes>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user