diff --git a/CHANGELOG.md b/CHANGELOG.md index e7c9f608c7..9dbb3a24aa 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 5d547ad4b9..3a3e41dc61 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; }