From 19a9d0d1f3ba49bc3adaf5b6ccb12af8749daaff Mon Sep 17 00:00:00 2001 From: groot Date: Wed, 10 Jun 2020 19:27:36 +0800 Subject: [PATCH] revert code (#2525) * revert code Signed-off-by: yhmo * changelog Signed-off-by: yhmo --- CHANGELOG.md | 1 - core/src/db/DBImpl.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7c9f608..9dbb3a24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,6 @@ Please mark all change in change log and use the issue from GitHub ## Bug - \#2367 Fix inconsistent reading and writing when using mishards - \#2368 Make read node detect delete behavior -- \#2373 Build index for small segment waste time on waiting background index thread finish - \#2394 Drop collection timeout if too many partitions created on collection ## Feature diff --git a/core/src/db/DBImpl.cpp b/core/src/db/DBImpl.cpp index 5d547ad4..3a3e41dc 100644 --- a/core/src/db/DBImpl.cpp +++ b/core/src/db/DBImpl.cpp @@ -2443,7 +2443,7 @@ DBImpl::WaitCollectionIndexRecursively(const std::shared_ptr& c // check to_index files every 5 seconds or background index thread finished repeat++; - if ((ret == std::cv_status::no_timeout) || (repeat % WAIT_BUILD_INDEX_INTERVAL == 0)) { + if (repeat % WAIT_BUILD_INDEX_INTERVAL == 0) { GetFilesToBuildIndex(collection_id, file_types, files_holder); ++times; } -- GitLab