Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix: use reference instead of value (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhao liwei authored May 25, 2020
1 parent 4ebbd1b commit 5aabc57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dist/replication/lib/replica_split.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ void replica::child_notify_catch_up() // on child partition
rpc.call(_config.primary,
tracker(),
[this, rpc](error_code ec) mutable {
auto response = rpc.response();
const auto &response = rpc.response();
if (ec == ERR_TIMEOUT) {
dwarn_replica("notify primary catch up timeout, please wait and retry");
tasking::enqueue(LPC_PARTITION_SPLIT,
Expand Down
3 changes: 1 addition & 2 deletions src/dist/replication/meta_server/meta_bulk_load_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ void bulk_load_service::create_partition_bulk_load_dir(const std::string &app_na
if (--_apps_in_progress_count[pid.get_app_id()] == 0) {
ddebug_f("app({}) start bulk load succeed", app_name);
_apps_in_progress_count[pid.get_app_id()] = partition_count;
auto response = rpc.response();
response.err = ERR_OK;
rpc.response().err = ERR_OK;
}
}
// start send bulk load to replica servers
Expand Down

0 comments on commit 5aabc57

Please sign in to comment.