aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-10-05 15:59:54 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-10-05 23:07:08 +0200
commitfee8f7f7aef4602da89d5bf43620a064d0de7172 (patch)
treeb5cce81e1d23fc536f8a692d429ca3fc224eda9b /searchlib
parent1273bfa7c489c8b6861fca1777833b068336944b (diff)
Wire in LogDocumentStore::Config in snapshot.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/docstore/logdocumentstore.cpp13
-rw-r--r--searchlib/src/vespa/searchlib/docstore/logdocumentstore.h3
2 files changed, 11 insertions, 5 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/logdocumentstore.cpp b/searchlib/src/vespa/searchlib/docstore/logdocumentstore.cpp
index ad9c4f0aa4f..04c4d40dd2c 100644
--- a/searchlib/src/vespa/searchlib/docstore/logdocumentstore.cpp
+++ b/searchlib/src/vespa/searchlib/docstore/logdocumentstore.cpp
@@ -7,6 +7,12 @@ namespace search {
using vespalib::nbostream;
using common::FileHeaderContext;
+bool
+LogDocumentStore::Config::operator == (const Config & rhs) const {
+ (void) rhs;
+ return true;
+}
+
LogDocumentStore::LogDocumentStore(vespalib::ThreadExecutor & executor,
const vespalib::string & baseDir,
const Config & config,
@@ -18,12 +24,9 @@ LogDocumentStore::LogDocumentStore(vespalib::ThreadExecutor & executor,
: DocumentStore(config, _backingStore),
_backingStore(executor, baseDir, config.getLogConfig(), growStrategy,
tuneFileSummary, fileHeaderContext, tlSyncer, bucketizer)
-{
-}
+{}
-LogDocumentStore::~LogDocumentStore()
-{
-}
+LogDocumentStore::~LogDocumentStore() {}
void
LogDocumentStore::reconfigure(const Config & config) {
diff --git a/searchlib/src/vespa/searchlib/docstore/logdocumentstore.h b/searchlib/src/vespa/searchlib/docstore/logdocumentstore.h
index 16fb6036519..7b44a864ea0 100644
--- a/searchlib/src/vespa/searchlib/docstore/logdocumentstore.h
+++ b/searchlib/src/vespa/searchlib/docstore/logdocumentstore.h
@@ -20,12 +20,15 @@ class LogDocumentStore : public DocumentStore
public:
class Config : public DocumentStore::Config {
public:
+ Config() : DocumentStore::Config(), _logConfig() { }
Config(const DocumentStore::Config & base, const LogDataStore::Config & log) :
DocumentStore::Config(base),
_logConfig(log)
{ }
const LogDataStore::Config & getLogConfig() const { return _logConfig; }
LogDataStore::Config & getLogConfig() { return _logConfig; }
+ bool operator == (const Config & rhs) const;
+ bool operator != (const Config & rhs) const { return ! (*this == rhs); }
private:
LogDataStore::Config _logConfig;
};