From cf68c9918eac06a0a814b21ae869000608b02da3 Mon Sep 17 00:00:00 2001 From: groot Date: Fri, 8 May 2020 06:40:41 -0500 Subject: [PATCH] #1925 (#2257) * write error Signed-off-by: groot * out of storage Signed-off-by: groot * clang format Signed-off-by: groot * fix ut Signed-off-by: groot * fix #1955 Signed-off-by: groot * refine code Signed-off-by: groot * compact threashold Signed-off-by: groot * changelog Signed-off-by: groot * search by id for hnsw/pq/annoy Signed-off-by: groot * fix python test Signed-off-by: yhmo * file cleanup timeout config Signed-off-by: yhmo * typo Signed-off-by: yhmo * changelog Signed-off-by: yhmo * #1925\ Signed-off-by: yhmo * typo Signed-off-by: yhmo --- CHANGELOG.md | 1 + core/src/server/delivery/request/FlushRequest.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7049a4e..f6e7a785 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 2f0fd7c6..f8bec5ef 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; -- GitLab