Skip to content

Commit

Permalink
fix possible graph coredump when metadata refresh during certain quer…
Browse files Browse the repository at this point in the history
…y invoke ScanEdgeProcessor::checkAndBuildContexts especially in asan binary (#5855)

fix possible graph coredump when metadata refresh during certain query excution
  • Loading branch information
mo-avatar authored Apr 15, 2024
1 parent 70aeb46 commit 494f48b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/storage/query/ScanEdgeProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ nebula::cpp2::ErrorCode ScanEdgeProcessor::checkAndBuildContexts(const cpp2::Sca

std::vector<cpp2::EdgeProp> returnProps = *req.return_columns_ref();
ret = handleEdgeProps(returnProps);
if (ret != nebula::cpp2::ErrorCode::SUCCEEDED) {
return ret;
}

buildEdgeColName(returnProps);
ret = buildFilter(req, [](const cpp2::ScanEdgeRequest& r, bool onlyTag) -> const std::string* {
UNUSED(onlyTag);
Expand Down

0 comments on commit 494f48b

Please sign in to comment.