diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-12-15 15:27:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 15:27:06 +0100 |
commit | cdf1de8b05183932fd6f49c26ac1a71e68bc9e2b (patch) | |
tree | c4879d88145a08ee3f5e451ea00a965bf12e1d2b /searchcore | |
parent | d628ca1587f85009ff64cea5ed4a998824966d9a (diff) | |
parent | a9a18f205d90a39a6ed748c92393784f360a51e8 (diff) |
Merge pull request #15823 from vespa-engine/balder/no-need-for-may-when-we-know
GC unused parameter. No need to say maybe when it is definitive.
Diffstat (limited to 'searchcore')
7 files changed, 9 insertions, 15 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp b/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp index c7b5aaafbfc..40f698ff033 100644 --- a/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp @@ -176,7 +176,7 @@ DocumentDB::DocumentDB(const vespalib::string &baseDir, _lidSpaceCompactionHandlers(), _jobTrackers(), _calc(), - _metricsUpdater(_subDBs, _writeService, _jobTrackers, *_sessionManager, _writeFilter, _state) + _metricsUpdater(_subDBs, _writeService, _jobTrackers, *_sessionManager, _writeFilter) { assert(configSnapshot); diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdb_metrics_updater.cpp b/searchcore/src/vespa/searchcore/proton/server/documentdb_metrics_updater.cpp index 3a086046a27..e48a112db93 100644 --- a/searchcore/src/vespa/searchcore/proton/server/documentdb_metrics_updater.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/documentdb_metrics_updater.cpp @@ -34,8 +34,7 @@ DocumentDBMetricsUpdater::DocumentDBMetricsUpdater(const DocumentSubDBCollection ExecutorThreadingService &writeService, DocumentDBJobTrackers &jobTrackers, matching::SessionManager &sessionManager, - const AttributeUsageFilter &writeFilter, - [[maybe_unused]] const DDBState &state) + const AttributeUsageFilter &writeFilter) : _subDBs(subDBs), _writeService(writeService), _jobTrackers(jobTrackers), diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdb_metrics_updater.h b/searchcore/src/vespa/searchcore/proton/server/documentdb_metrics_updater.h index dbf4c45007f..399918b52da 100644 --- a/searchcore/src/vespa/searchcore/proton/server/documentdb_metrics_updater.h +++ b/searchcore/src/vespa/searchcore/proton/server/documentdb_metrics_updater.h @@ -45,8 +45,7 @@ public: ExecutorThreadingService &writeService, DocumentDBJobTrackers &jobTrackers, matching::SessionManager &sessionManager, - const AttributeUsageFilter &writeFilter, - const DDBState &state); + const AttributeUsageFilter &writeFilter); ~DocumentDBMetricsUpdater(); void updateMetrics(DocumentDBTaggedMetrics &metrics); diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp index 203b58437f3..aca002faa25 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp @@ -122,7 +122,7 @@ VESPA_THREAD_STACK_TAG(close_executor) } -Proton::ProtonFileHeaderContext::ProtonFileHeaderContext([[maybe_unused]] const Proton &proton_, const vespalib::string &creator) +Proton::ProtonFileHeaderContext::ProtonFileHeaderContext(const vespalib::string &creator) : _hostName(), _creator(creator), _cluster(), @@ -189,7 +189,7 @@ Proton::Proton(const config::ConfigUri & configUri, _mutex(), _metricsHook(*this), _metricsEngine(std::make_unique<MetricsEngine>()), - _fileHeaderContext(*this, progName), + _fileHeaderContext(progName), _tls(), _diskMemUsageSampler(), _persistenceEngine(), diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.h b/searchcore/src/vespa/searchcore/proton/server/proton.h index f88cd7bf0cd..c03839139ec 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton.h +++ b/searchcore/src/vespa/searchcore/proton/server/proton.h @@ -78,7 +78,7 @@ private: pid_t _pid; public: - ProtonFileHeaderContext(const Proton &proton_, const vespalib::string &creator); + ProtonFileHeaderContext(const vespalib::string &creator); ~ProtonFileHeaderContext() override; void addTags(vespalib::GenericHeader &header, const vespalib::string &name) const override; diff --git a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp index 7d5d49b19c7..0bd50fc0104 100644 --- a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp @@ -120,7 +120,7 @@ StoreOnlyDocSubDB::StoreOnlyDocSubDB(const Config &cfg, const Context &ctx) _pendingLidsForCommit(std::make_shared<PendingLidTracker>()), _subDbId(cfg._subDbId), _subDbType(cfg._subDbType), - _fileHeaderContext(*this, ctx._fileHeaderContext, _docTypeName, _baseDir), + _fileHeaderContext(ctx._fileHeaderContext, _docTypeName, _baseDir), _gidToLidChangeHandler(std::make_shared<DummyGidToLidChangeHandler>()) { vespalib::mkdir(_baseDir, false); // Assume parent is created. @@ -497,8 +497,7 @@ StoreOnlyDocSubDB::getDocumentDBReference() } StoreOnlySubDBFileHeaderContext:: -StoreOnlySubDBFileHeaderContext([[maybe_unused]] StoreOnlyDocSubDB &owner, - const FileHeaderContext & parentFileHeaderContext, +StoreOnlySubDBFileHeaderContext(const FileHeaderContext & parentFileHeaderContext, const DocTypeName &docTypeName, const vespalib::string &baseDir) : FileHeaderContext(), diff --git a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h index 1cdd22fcc41..7c3f7c82eb0 100644 --- a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h +++ b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.h @@ -50,8 +50,6 @@ public: void close() override { } }; -class StoreOnlyDocSubDB; - /** * File header context used by the store-only sub database. * @@ -65,8 +63,7 @@ class StoreOnlySubDBFileHeaderContext : public search::common::FileHeaderContext vespalib::string _subDB; public: - StoreOnlySubDBFileHeaderContext(StoreOnlyDocSubDB &owner, - const search::common::FileHeaderContext & parentFileHeaderContext, + StoreOnlySubDBFileHeaderContext(const search::common::FileHeaderContext & parentFileHeaderContext, const DocTypeName &docTypeName, const vespalib::string &baseDir); ~StoreOnlySubDBFileHeaderContext(); |