blob: 2981bdaa504a901327ece86907b374d1491641d5 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "document_db_maintenance_config.h"
namespace proton {
DocumentDBFlushConfig::DocumentDBFlushConfig() noexcept
: DocumentDBFlushConfig(2, 20)
{
}
DocumentDBFlushConfig::DocumentDBFlushConfig(uint32_t maxFlushed, uint32_t maxFlushedRetired) noexcept
: _maxFlushed(maxFlushed),
_maxFlushedRetired(maxFlushedRetired)
{
}
bool
DocumentDBFlushConfig::operator==(const DocumentDBFlushConfig &rhs) const noexcept
{
return
_maxFlushed == rhs._maxFlushed &&
_maxFlushedRetired == rhs._maxFlushedRetired;
}
} // namespace proton
|