diff --git a/src/storage/index/LookupProcessor.cpp b/src/storage/index/LookupProcessor.cpp index b42ceb53673..a89b8b5a416 100644 --- a/src/storage/index/LookupProcessor.cpp +++ b/src/storage/index/LookupProcessor.cpp @@ -212,7 +212,7 @@ void LookupProcessor::runInSingleThread(const std::vector& parts, } if (statTypes_.size() > 0) { auto indexAgg = dynamic_cast(plan.get()); - statsDataSet_.emplace_back(std::move(indexAgg->calculateStats())); + statsDataSet_.emplace_back(indexAgg->calculateStats()); } for (size_t i = 0; i < datasetList.size(); i++) { if (codeList[i] == ::nebula::cpp2::ErrorCode::SUCCEEDED) { diff --git a/src/storage/test/LookupIndexTest.cpp b/src/storage/test/LookupIndexTest.cpp index bf9d5b341a9..233328f6840 100644 --- a/src/storage/test/LookupIndexTest.cpp +++ b/src/storage/test/LookupIndexTest.cpp @@ -3552,7 +3552,7 @@ TEST_P(LookupIndexTest, AggregateEdgePropNotInReturnColumnsTest) { QueryTestUtils::checkStatResponse(resp, expectStatColumns, expectStatRow); } -INSTANTIATE_TEST_CASE_P(Lookup_concurrently, LookupIndexTest, ::testing::Values(false, true)); +INSTANTIATE_TEST_SUITE_P(Lookup_concurrently, LookupIndexTest, ::testing::Values(false, true)); } // namespace storage } // namespace nebula