summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2017-08-10 21:35:51 +0200
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-08-10 19:42:39 +0000
commitb23a8cd7e201d8225b8b778a473b4530312110ab (patch)
tree2fa0bf77e36be17916167a19adca160ca3bab0d6 /storage
parenta35807d95255625553daa0db745df0e422172fd8 (diff)
Eliminate inlining warnings.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.cpp16
-rw-r--r--storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.h18
2 files changed, 28 insertions, 6 deletions
diff --git a/storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.cpp b/storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.cpp
index bf2bc258d6e..61e67b40f44 100644
--- a/storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.cpp
+++ b/storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.cpp
@@ -7,6 +7,18 @@
namespace storage {
namespace distributor {
+BucketDBMetricUpdater::Stats::Stats()
+ : _docCount(0),
+ _byteCount(0),
+ _tooFewCopies(0),
+ _tooManyCopies(0),
+ _noTrusted(0),
+ _totalBuckets(0)
+{
+}
+
+BucketDBMetricUpdater::Stats::Stats(const Stats &rhs) = default;
+
BucketDBMetricUpdater::BucketDBMetricUpdater()
: _workingStats(),
_lastCompleteStats(),
@@ -15,6 +27,10 @@ BucketDBMetricUpdater::BucketDBMetricUpdater()
{
}
+BucketDBMetricUpdater::~BucketDBMetricUpdater()
+{
+}
+
void
BucketDBMetricUpdater::resetStats()
{
diff --git a/storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.h b/storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.h
index fe1b7747e7d..07b9e2a48a6 100644
--- a/storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.h
+++ b/storage/src/vespa/storage/distributor/bucketdb/bucketdbmetricupdater.h
@@ -19,12 +19,16 @@ class BucketDBMetricUpdater {
public:
/** Bucket statistics for a single database iteration */
struct Stats {
- uint64_t _docCount {0};
- uint64_t _byteCount {0};
- uint64_t _tooFewCopies {0};
- uint64_t _tooManyCopies {0};
- uint64_t _noTrusted {0};
- uint64_t _totalBuckets {0};
+ uint64_t _docCount;
+ uint64_t _byteCount;
+ uint64_t _tooFewCopies;
+ uint64_t _tooManyCopies;
+ uint64_t _noTrusted;
+ uint64_t _totalBuckets;
+
+ Stats();
+ Stats(const Stats &rhs);
+ ~Stats() { }
/**
* For each node N, look at all the buckets that have or should have a
@@ -61,6 +65,8 @@ private:
public:
BucketDBMetricUpdater();
+ ~BucketDBMetricUpdater();
+
void setMinimumReplicaCountingMode(ReplicaCountingMode mode) noexcept {
_replicaCountingMode = mode;
}