From 2b682b9a6dab1dd27ca9fae8cb62cfc678f5bafa Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 16 Jan 2019 12:45:36 +0100 Subject: Update default source in source selector when switching to new memory index. Override default source when loading source selector from disk. --- searchcore/src/tests/proton/index/fusionrunner_test.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'searchcore') diff --git a/searchcore/src/tests/proton/index/fusionrunner_test.cpp b/searchcore/src/tests/proton/index/fusionrunner_test.cpp index 650b263ff75..be41aa96efd 100644 --- a/searchcore/src/tests/proton/index/fusionrunner_test.cpp +++ b/searchcore/src/tests/proton/index/fusionrunner_test.cpp @@ -165,6 +165,7 @@ void Test::createIndex(const string &dir, uint32_t id, bool fusion) { _fusion_spec.flush_ids.push_back(id); } const string index_dir = ost.str(); + _selector->setDefaultSource(id - _selector->getBaseId()); Schema schema = getSchema(); DocBuilder doc_builder(schema); -- cgit v1.2.3