diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-12-15 09:28:56 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-12-15 09:28:56 +0000 |
commit | 2c2f5c15dc90099b6dabe7bae546fc0724f4d8fe (patch) | |
tree | 20f7b1e073a93bb0ee7663ce75623e59d8f60fbb /searchcore | |
parent | f3bcec7337142f9d08f8bd560a31271267dedc79 (diff) |
Fix typo
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp b/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp index 68506d3808a..3b1a21a7e2f 100644 --- a/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp +++ b/searchcore/src/vespa/searchcore/proton/metrics/documentdb_tagged_metrics.cpp @@ -4,6 +4,9 @@ #include <vespa/vespalib/util/stringfmt.h> #include <vespa/vespalib/util/exceptions.h> +#include <vespa/log/log.h> +LOG_SETUP(".proton.metrics.documentdb_tagged_metrics"); + namespace proton { using matching::MatchingStats; @@ -213,10 +216,10 @@ DocumentDBTaggedMetrics::MatchingMetrics::RankProfileMetrics::update(const Match queryLatency.addValueBatch(stats.queryLatencyAvg(), stats.queryLatencyCount(), stats.queryLatencyMin(), stats.queryLatencyMax()); if (stats.getNumPartitions() > 0) { - for (size_t i = partition.size(); i < stats.getNumPartitions(); ++i) { + for (size_t i = partitions.size(); i < stats.getNumPartitions(); ++i) { // This loop is to handle live reconfigs that changes how many partitions(number of threads) might be used per query. - vespalib::string partitionId(vespalib::make_string("docid_part%02ld", i)); - partitions.push_back(std::make_unique<DocIdPartition>(partitionId, this)); + vespalib::string partition(vespalib::make_string("docid_part%02ld", i)); + partitions.push_back(std::make_unique<DocIdPartition>(partition, this)); LOG(info, "Number of partitions has been increased to '%ld' from '%ld' previously configured. Adding part %ld", stats.getNumPartitions(), partitions.size(), i); } |