blob: d538c80b42963ea04005897381ca807ed887332f (
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 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "lid_reuse_delayer_config.h"
#include <vespa/searchcore/proton/server/documentdbconfig.h>
namespace proton::documentmetastore {
LidReuseDelayerConfig::LidReuseDelayerConfig()
: _visibilityDelay(0),
_hasIndexedOrAttributeFields(false)
{
}
LidReuseDelayerConfig::LidReuseDelayerConfig(const DocumentDBConfig &
configSnapshot)
: _visibilityDelay(configSnapshot.getMaintenanceConfigSP()->
getVisibilityDelay()),
_hasIndexedOrAttributeFields(configSnapshot.getSchemaSP()->getNumIndexFields() > 0 ||
configSnapshot.getSchemaSP()->getNumAttributeFields() > 0)
{
}
} // namespace proton::documentmetastore
|