Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
fixing errors due to new vs2015 compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
chivee committed Nov 30, 2016
1 parent 8b606a7 commit b8dd9b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/controller.cpp
Expand Up @@ -17,8 +17,8 @@ class Controller::BarrierController {
tasks_.push_back(std::move(msg));
if (static_cast<int>(tasks_.size()) == Zoo::Get()->size()) {
MessagePtr my_reply; // my reply should be the last one
for (auto& msg : tasks_) {
MessagePtr reply(msg->CreateReplyMessage());
for (auto& task_msg : tasks_) {
MessagePtr reply(task_msg->CreateReplyMessage());
if (reply->dst() != Zoo::Get()->rank()) {
parent_->SendTo(actor::kCommunicator, reply);
} else {
Expand Down
16 changes: 8 additions & 8 deletions src/worker.cpp
Expand Up @@ -38,14 +38,14 @@ void Worker::ProcessGet(MessagePtr& msg) {
cache_[table_id]->Reset(msg_id, num);

for (auto& it : partitioned_key) {
MessagePtr msg(new Message());
msg->set_src(Zoo::Get()->rank());
msg->set_dst(it.first);
msg->set_type(MsgType::Request_Get);
msg->set_msg_id(msg_id);
msg->set_table_id(table_id);
msg->set_data(it.second);
SendTo(actor::kCommunicator, msg);
MessagePtr new_msg(new Message());
new_msg->set_src(Zoo::Get()->rank());
new_msg->set_dst(it.first);
new_msg->set_type(MsgType::Request_Get);
new_msg->set_msg_id(msg_id);
new_msg->set_table_id(table_id);
new_msg->set_data(it.second);
SendTo(actor::kCommunicator, new_msg);
}
MONITOR_END(WORKER_PROCESS_GET)
}
Expand Down

0 comments on commit b8dd9b5

Please sign in to comment.