diff --git a/CHANGELOG.md b/CHANGELOG.md index e7049a4eb2..f6e7a7855d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Please mark all change in change log and use the issue from GitHub ## Bug - \#1705 Limit the insert data batch size - \#1776 Error out when index SQ8H run in CPU mode +- \#1925 To flush all collections, flush cannot work - \#1929 Skip MySQL meta schema field width check - \#1946 Fix load index file CPU2GPU fail during searching - \#1955 Switch create_index operation to background once client break connection diff --git a/core/src/server/delivery/request/FlushRequest.cpp b/core/src/server/delivery/request/FlushRequest.cpp index 2f0fd7c6ef..f8bec5effa 100644 --- a/core/src/server/delivery/request/FlushRequest.cpp +++ b/core/src/server/delivery/request/FlushRequest.cpp @@ -49,6 +49,13 @@ FlushRequest::OnExecute() { Status status = Status::OK(); LOG_SERVER_DEBUG_ << hdr; + // flush all collections + if (collection_names_.empty()) { + status = DBWrapper::DB()->Flush(); + return status; + } + + // flush specified collections for (auto& name : collection_names_) { // only process root collection, ignore partition collection engine::meta::CollectionSchema collection_schema;