diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-01-28 18:16:36 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-01-28 18:16:36 +0000 |
commit | 1adf3a39dad82d07c2d0db9010d75de3d5249608 (patch) | |
tree | 3a0b465b96a1affde2efdff504ec761322fe41a2 /searchcore | |
parent | 5c4879dbd3af7610940903321cbe6be632ffa9b8 (diff) |
Need fallback for tests.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/documentdb.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp b/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp index 05088377811..352de412f79 100644 --- a/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp @@ -89,6 +89,8 @@ makeIndexConfig(const ProtonConfig::Index & cfg) { return index::IndexConfig(WarmupConfig(cfg.warmup.time, cfg.warmup.unpack), cfg.maxflushed, cfg.cache.size); } +ProtonConfig::Documentdb _G_defaultProtonDocumentDBConfig; + const ProtonConfig::Documentdb * findDocumentDB(const ProtonConfig::DocumentdbVector & documentDBs, const vespalib::string & docType) { for (const auto & dbCfg : documentDBs) { @@ -96,7 +98,7 @@ findDocumentDB(const ProtonConfig::DocumentdbVector & documentDBs, const vespali return & dbCfg; } } - return nullptr; + return &_G_defaultProtonDocumentDBConfig; } } |