summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-01-25 09:31:44 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-01-25 09:31:44 +0000
commit7f7dd260c32744e46473a26d1ecc0d4a15bfed6d (patch)
tree75c2d7f541e2ddafa3fbabed802ce2bd57ab5a65 /searchcore
parentf4185f045d8929916d2ce023d395ce1ff58826c4 (diff)
Reindent to group parameters logically.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/documentsubdbcollection.cpp66
1 files changed, 24 insertions, 42 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/documentsubdbcollection.cpp b/searchcore/src/vespa/searchcore/proton/server/documentsubdbcollection.cpp
index cfd0ecc53d9..21a7336401c 100644
--- a/searchcore/src/vespa/searchcore/proton/server/documentsubdbcollection.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/documentsubdbcollection.cpp
@@ -62,50 +62,32 @@ DocumentSubDBCollection::DocumentSubDBCollection(
StoreOnlyDocSubDB::Context context(owner, tlSyncer, getSerialNum, fileHeaderContext, writeService,
sharedExecutor, _bucketDB, *_bucketDBHandler, metrics, configMutex, hwInfo);
_subDBs.push_back
- (new SearchableDocSubDB
- (SearchableDocSubDB::Config(FastAccessDocSubDB::Config
- (StoreOnlyDocSubDB::Config(docTypeName,
- "0.ready",
- baseDir,
- cfg.getReadyGrowth(),
- cfg.getFixedAttributeTotalSkew(),
- _readySubDbId,
- SubDbType::READY),
- true,
- true,
- false),
- cfg.getNumSearchThreads()),
- SearchableDocSubDB::Context(FastAccessDocSubDB::Context
- (context,
- metrics.ready.attributes,
- metricsWireService),
- queryLimiter,
- clock,
- warmupExecutor)));
+ (new SearchableDocSubDB(
+ SearchableDocSubDB::Config(
+ FastAccessDocSubDB::Config(
+ StoreOnlyDocSubDB::Config(docTypeName, "0.ready", baseDir,
+ cfg.getReadyGrowth(), cfg.getFixedAttributeTotalSkew(),
+ _readySubDbId, SubDbType::READY),
+ true, true, false),
+ cfg.getNumSearchThreads()),
+ SearchableDocSubDB::Context(
+ FastAccessDocSubDB::Context(context, metrics.ready.attributes, metricsWireService),
+ queryLimiter, clock, warmupExecutor)));
+
_subDBs.push_back
- (new StoreOnlyDocSubDB(StoreOnlyDocSubDB::Config(docTypeName,
- "1.removed",
- baseDir,
- cfg.getRemovedGrowth(),
- cfg.getFixedAttributeTotalSkew(),
- _remSubDbId,
- SubDbType::REMOVED),
- context));
+ (new StoreOnlyDocSubDB(
+ StoreOnlyDocSubDB::Config(docTypeName, "1.removed", baseDir, cfg.getRemovedGrowth(),
+ cfg.getFixedAttributeTotalSkew(), _remSubDbId, SubDbType::REMOVED),
+ context));
+
_subDBs.push_back
- (new FastAccessDocSubDB(FastAccessDocSubDB::Config
- (StoreOnlyDocSubDB::Config(docTypeName,
- "2.notready",
- baseDir,
- cfg.getNotReadyGrowth(),
- cfg.getFixedAttributeTotalSkew(),
- _notReadySubDbId,
- SubDbType::NOTREADY),
- true,
- true,
- true),
- FastAccessDocSubDB::Context(context,
- metrics.notReady.attributes,
- metricsWireService)));
+ (new FastAccessDocSubDB(
+ FastAccessDocSubDB::Config(
+ StoreOnlyDocSubDB::Config(docTypeName, "2.notready", baseDir,
+ cfg.getNotReadyGrowth(), cfg.getFixedAttributeTotalSkew(),
+ _notReadySubDbId, SubDbType::NOTREADY),
+ true, true, true),
+ FastAccessDocSubDB::Context(context, metrics.notReady.attributes, metricsWireService)));
}