Skip to content

Commit

Permalink
fix baton miss reset in StorageJobExecutor (#5269)
Browse files Browse the repository at this point in the history
  • Loading branch information
liwenhui-soul authored and Sophie-Xie committed Jan 28, 2023
1 parent 6f972c9 commit bcc7a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta/processors/job/StorageJobExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ folly::Future<nebula::cpp2::ErrorCode> StorageJobExecutor::execute() {
task.getErrorCode());
faildKV.emplace_back(std::move(taskKey), std::move(taskVal));
}

baton.reset();
kvstore_->asyncMultiPut(
kDefaultSpaceId, kDefaultPartId, std::move(faildKV), [&](nebula::cpp2::ErrorCode code) {
if (code != nebula::cpp2::ErrorCode::SUCCEEDED) {
Expand Down

0 comments on commit bcc7a83

Please sign in to comment.