From 607ec31fbcc2cd069b41a8f7884ad5085c2ae6bc Mon Sep 17 00:00:00 2001 From: groot Date: Mon, 21 Dec 2020 16:30:10 +0800 Subject: [PATCH] #4484 Milvus only search default partition if search parameter partition_tags contains _default (#4486) Signed-off-by: yhmo --- CHANGELOG.md | 1 + core/src/db/DBImpl.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41216f2ad0..f0f34276ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Please mark all change in change log and use the issue from GitHub # Milvus 0.10.5 (TBD) ## Bug - \#4378 Multi-threads to call load_collection() and search() cause Milvus hang +- \#4484 Milvus only search default partition if search parameter 'partition_tags' contains '_default' ## Feature diff --git a/core/src/db/DBImpl.cpp b/core/src/db/DBImpl.cpp index ad437b965b..fd9c72adb7 100644 --- a/core/src/db/DBImpl.cpp +++ b/core/src/db/DBImpl.cpp @@ -2385,7 +2385,7 @@ DBImpl::GetPartitionsByTags(const std::string& collection_id, const std::vector< if (valid_tag == milvus::engine::DEFAULT_PARTITON_TAG) { partition_name_array.insert(collection_id); - return status; + continue; } for (auto& schema : partition_array) {