Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1367
33 lines
683 B
C++
33 lines
683 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "communication/rpc/messages.hpp"
|
|
#include "distributed/serialization.hpp"
|
|
|
|
namespace distributed {
|
|
|
|
struct IndexLabelPropertyTx {
|
|
storage::Label label;
|
|
storage::Property property;
|
|
tx::TransactionId tx_id;
|
|
|
|
private:
|
|
friend class boost::serialization::access;
|
|
|
|
template <class TArchive>
|
|
void serialize(TArchive &ar, unsigned int) {
|
|
ar &label;
|
|
ar &property;
|
|
ar &tx_id;
|
|
}
|
|
};
|
|
|
|
RPC_SINGLE_MEMBER_MESSAGE(BuildIndexReq, IndexLabelPropertyTx);
|
|
RPC_NO_MEMBER_MESSAGE(BuildIndexRes);
|
|
|
|
using BuildIndexRpc =
|
|
communication::rpc::RequestResponse<BuildIndexReq, BuildIndexRes>;
|
|
} // namespace distributed
|