From ae70f994317c04cd9c65a079b1aedbdba9bc71c7 Mon Sep 17 00:00:00 2001 From: Evelin Aasna Date: Mon, 15 Apr 2024 10:52:53 +0200 Subject: [PATCH] Fix manual query segment count --- include/valik/split/metadata.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/valik/split/metadata.hpp b/include/valik/split/metadata.hpp index 3ea3cd2f..19204035 100644 --- a/include/valik/split/metadata.hpp +++ b/include/valik/split/metadata.hpp @@ -457,6 +457,10 @@ struct metadata else arguments.seg_count = std::max(arguments.seg_count, (uint32_t) sequences.size() * 2); } + else + { + arguments.seg_count = arguments.seg_count_in; + } scan_database_sequences(arguments); if (arguments.manual_parameters && (segments.size() != arguments.seg_count))