diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-08 00:43:42 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-12-16 23:48:46 +0000 |
commit | e11228ca3457aeeee7e9ac1ad4c78bf26e72f1b1 (patch) | |
tree | b53da9a573071e303745c658308553b08d56e54f /searchcorespi | |
parent | f6c5439141b1f5fb73156d8805aae1a436d558c5 (diff) |
GC unused code.
Diffstat (limited to 'searchcorespi')
-rw-r--r-- | searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp b/searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp index 72ac28bfd8c..39f6a489908 100644 --- a/searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp +++ b/searchcorespi/src/vespa/searchcorespi/index/warmupindexcollection.cpp @@ -12,7 +12,6 @@ LOG_SETUP(".searchcorespi.index.warmupindexcollection"); namespace searchcorespi { -using fastos::TimeStamp; using index::IDiskIndex; using search::fef::MatchDataLayout; using search::index::FieldLengthInfo; @@ -36,18 +35,18 @@ WarmupIndexCollection::WarmupIndexCollection(const WarmupConfig & warmupConfig, vespalib::SyncableThreadExecutor & executor, IWarmupDone & warmupDone) : _warmupConfig(warmupConfig), - _prev(prev), - _next(next), + _prev(std::move(prev)), + _next(std::move(next)), _warmup(warmup), _executor(executor), _warmupDone(warmupDone), _warmupEndTime(vespalib::steady_clock::now() + warmupConfig.getDuration()), _handledTerms(std::make_unique<FieldTermMap>()) { - if (next->valid()) { - setCurrentIndex(next->getCurrentIndex()); + if (_next->valid()) { + setCurrentIndex(_next->getCurrentIndex()); } else { - LOG(warning, "Next index is not valid, Dangerous !! : %s", next->toString().c_str()); + LOG(warning, "Next index is not valid, Dangerous !! : %s", _next->toString().c_str()); } LOG(debug, "For %g seconds I will warm up '%s' %s unpack.", vespalib::to_s(warmupConfig.getDuration()), typeid(_warmup).name(), warmupConfig.getUnpack() ? "with" : "without"); LOG(debug, "%s", toString().c_str()); |