diff --git a/CHANGELOG.md b/CHANGELOG.md index e7049a4eb2d752013c8768d8f216ef6649a9905c..f6e7a7855dbde183117c8ab86288a5d25542ecaa 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 2f0fd7c6ef771f5caa8e744300b0d552d6aac630..f8bec5effa95a05534edcd5a50319a4cd2da51a2 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;