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

Commit

Permalink
fix asan error (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
bright-starry-sky authored May 26, 2021
1 parent cd85c2d commit db9c37d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/meta/processors/indexMan/FTIndexProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ void CreateFTIndexProcessor::process(const cpp2::CreateFTIndexReq& req) {
}

// Check fulltext index exist.
auto ret = doPrefix(MetaServiceUtils::fulltextIndexPrefix());
auto ftPrefix = MetaServiceUtils::fulltextIndexPrefix();
auto ret = doPrefix(ftPrefix);
if (!nebula::ok(ret)) {
auto retCode = nebula::error(ret);
LOG(ERROR) << "Fulltext Prefix failed, "
Expand Down
3 changes: 2 additions & 1 deletion src/meta/processors/partsMan/DropSpaceProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ void DropSpaceProcessor::process(const cpp2::DropSpaceReq& req) {
deleteKeys.emplace_back(statiskey);

// 6. Delte related fulltext index meta data
auto ftRet = doPrefix(MetaServiceUtils::fulltextIndexPrefix());
auto ftPrefix = MetaServiceUtils::fulltextIndexPrefix();
auto ftRet = doPrefix(ftPrefix);
if (!nebula::ok(ftRet)) {
auto retCode = nebula::error(ftRet);
LOG(ERROR) << "Drop space Failed, space " << spaceName
Expand Down

0 comments on commit db9c37d

Please sign in to comment.