Skip to content

Commit

Permalink
Fixed crash on dropping fulltext index (#4384)
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor authored and Sophie-Xie committed Jul 8, 2022
1 parent 518c7d7 commit 2cc1cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graph/executor/admin/SpaceExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ folly::Future<Status> DropSpaceExecutor::execute() {
return Status::OK();
}
for (const auto &ftindex : ftIndexes) {
auto ftRet = FTIndexUtils::dropTSIndex(std::move(tsRet).value(), ftindex);
auto ftRet = FTIndexUtils::dropTSIndex(tsRet.value(), ftindex);
if (!ftRet.ok()) {
LOG(WARNING) << "Drop fulltext index `" << ftindex << "' failed: " << ftRet.status();
}
Expand Down Expand Up @@ -195,7 +195,7 @@ folly::Future<Status> ClearSpaceExecutor::execute() {
return Status::OK();
}
for (const auto &ftindex : ftIndexes) {
auto ftRet = FTIndexUtils::clearTSIndex(std::move(tsRet).value(), ftindex);
auto ftRet = FTIndexUtils::clearTSIndex(tsRet.value(), ftindex);
if (!ftRet.ok()) {
LOG(WARNING) << "Clear fulltext index `" << ftindex << "' failed: " << ftRet.status();
}
Expand Down

0 comments on commit 2cc1cde

Please sign in to comment.