未验证 提交 fcc679e6 编写于 作者: G groot 提交者: GitHub

fix layer merge bug (#3542)

Signed-off-by: Ngroot <yihua.mo@zilliz.com>
上级 a87596fb
......@@ -20,7 +20,7 @@ namespace milvus {
namespace engine {
namespace {
const int64_t FORCE_MERGE_THREASHOLD = 30; // force merge files older this time(in second)
const int64_t FORCE_MERGE_THREASHOLD = 30 * 1000 * 1000; // force merge files older this time(in microsecond)
using LayerGroups = std::map<int64_t, SegmentInfoList>;
......@@ -80,7 +80,7 @@ MergeLayerStrategy::RegroupSegments(const Partition2SegmentsMap& part2segment, i
}
if (segments.size() == 1) {
if (now - segments[0].create_on_ > static_cast<int64_t>(FORCE_MERGE_THREASHOLD * 1000)) {
if (now - segments[0].create_on_ > FORCE_MERGE_THREASHOLD) {
force_list.swap(segments);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册