blob: f7cc0c9a09be9a7dcd818895983e38b1e1250489 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "bm_merge_stats.h"
namespace search::bmcluster {
BmMergeStats::BmMergeStats()
: BmMergeStats(0u, 0u)
{
}
BmMergeStats::BmMergeStats(uint32_t active, uint32_t queued)
: _active(active),
_queued(queued)
{
}
BmMergeStats::~BmMergeStats() = default;
BmMergeStats&
BmMergeStats::operator+=(const BmMergeStats& rhs)
{
_active += rhs._active;
_queued += rhs._queued;
return *this;
}
bool
BmMergeStats::operator==(const BmMergeStats &rhs) const
{
return ((_active == rhs._active) &&
(_queued == rhs._queued));
}
}
|