aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/index
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-05-14 14:02:19 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-05-14 18:29:04 +0000
commitd2dec4cfb9cff2c746ba20e727c6f8c846c7985d (patch)
treee624f734c4d59313f037ffaf0ba178d942b90747 /searchcore/src/tests/proton/index
parent67f55d7c0c14fee4830a010281fc0c2c752c1d8a (diff)
Wire in the shared executor in the threading service.
Diffstat (limited to 'searchcore/src/tests/proton/index')
-rw-r--r--searchcore/src/tests/proton/index/fusionrunner_test.cpp4
-rw-r--r--searchcore/src/tests/proton/index/indexmanager_test.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/index/fusionrunner_test.cpp b/searchcore/src/tests/proton/index/fusionrunner_test.cpp
index 9a1ddee4278..8f9944e178e 100644
--- a/searchcore/src/tests/proton/index/fusionrunner_test.cpp
+++ b/searchcore/src/tests/proton/index/fusionrunner_test.cpp
@@ -62,6 +62,7 @@ class Test : public vespalib::TestApp {
FixedSourceSelector::UP _selector;
FusionSpec _fusion_spec;
DummyFileHeaderContext _fileHeaderContext;
+ vespalib::ThreadStackExecutor _sharedExecutor;
ExecutorThreadingService _threadingService;
IndexManager::MaintainerOperations _ops;
@@ -84,7 +85,8 @@ public:
_selector(),
_fusion_spec(),
_fileHeaderContext(),
- _threadingService(),
+ _sharedExecutor(1, 0x10000),
+ _threadingService(_sharedExecutor),
_ops(_fileHeaderContext,
TuneFileIndexManager(), 0,
_threadingService)
diff --git a/searchcore/src/tests/proton/index/indexmanager_test.cpp b/searchcore/src/tests/proton/index/indexmanager_test.cpp
index 841c69289bf..9abd3e6cb39 100644
--- a/searchcore/src/tests/proton/index/indexmanager_test.cpp
+++ b/searchcore/src/tests/proton/index/indexmanager_test.cpp
@@ -100,6 +100,7 @@ struct Fixture {
SerialNum _serial_num;
IndexManagerDummyReconfigurer _reconfigurer;
DummyFileHeaderContext _fileHeaderContext;
+ vespalib::ThreadStackExecutor _sharedExecutor;
ExecutorThreadingService _writeService;
std::unique_ptr<IndexManager> _index_manager;
Schema _schema;
@@ -109,7 +110,8 @@ struct Fixture {
: _serial_num(0),
_reconfigurer(),
_fileHeaderContext(),
- _writeService(),
+ _sharedExecutor(1, 0x10000),
+ _writeService(_sharedExecutor),
_index_manager(),
_schema(getSchema()),
_builder(_schema)