Skip to content

Commit

Permalink
replace doPut()
Browse files Browse the repository at this point in the history
  • Loading branch information
Nivras committed Nov 30, 2021
1 parent 3f64887 commit cd686e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/meta/processors/admin/HBProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ void HBProcessor::process(const cpp2::HBReq& req) {
auto partListVal = MetaKeyUtils::diskPartsVal(partList);
std::string key = MetaKeyUtils::diskPartsKey(host, spaceId, path);
std::vector<kvstore::KV> data;
LOG(INFO) << "data.key: " << key << "value: " << partListVal;
data.emplace_back(key, partListVal);
doPut(std::move(data));
kvstore_->asyncMultiPut(
kDefaultSpaceId,
kDefaultPartId,
std::move(data),
[this](nebula::cpp2::ErrorCode code) { this->handleErrorCode(code); });
}
}
}
Expand Down

0 comments on commit cd686e6

Please sign in to comment.