diff --git a/src/meta/processors/indexMan/FTIndexProcessor.cpp b/src/meta/processors/indexMan/FTIndexProcessor.cpp index 0dec9b8c7..f5b22b2a3 100644 --- a/src/meta/processors/indexMan/FTIndexProcessor.cpp +++ b/src/meta/processors/indexMan/FTIndexProcessor.cpp @@ -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, " diff --git a/src/meta/processors/partsMan/DropSpaceProcessor.cpp b/src/meta/processors/partsMan/DropSpaceProcessor.cpp index b5bfb8e3d..5e88f4fba 100644 --- a/src/meta/processors/partsMan/DropSpaceProcessor.cpp +++ b/src/meta/processors/partsMan/DropSpaceProcessor.cpp @@ -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