提交 54013a93 编写于 作者: T tangwei12

add RequestCheckpointNotify in grpc

上级 050b66e2
......@@ -247,6 +247,9 @@ void AsyncGRPCServer::StartServer() {
std::bind(&AsyncGRPCServer::TryToRegisterNewOne, this,
std::placeholders::_1, std::placeholders::_2);
LOG(INFO) << "Server StartServer on "
<< "TryToRegisterNewOne bind finished";
for (auto& t : rpc_call_map_) {
auto& rpc_name = t.first;
auto& cq = rpc_cq_[rpc_name];
......@@ -255,6 +258,8 @@ void AsyncGRPCServer::StartServer() {
reqs.reserve(kRequestBufSize);
LOG(INFO) << "TryToRegisterNewOne on RPC NAME: " << rpc_name << "I: " << i;
for (int i = 0; i < kRequestBufSize; i++) {
TryToRegisterNewOne(rpc_name, i);
}
......
......@@ -43,8 +43,8 @@ constexpr char kRequestCheckpoint[] = "RequestCheckpoint";
#define FETCH_BARRIER_MESSAGE "FETCH_BARRIER@RECV"
#define COMPLETE_MESSAGE "COMPLETE@RECV"
#define CHECKPOINT_SAVE_MESSAGE "SAVE"
#define CHECKPOINT_LOAD_MESSAGE "LOAD"
#define CHECKPOINT_SAVE_MESSAGE "SAVE@CHECKPOINTNOTIFY"
#define CHECKPOINT_LOAD_MESSAGE "LOAD@CHECKPOINTNOTIFY"
class RPCServer;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册