aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/flushengine/cachedflushtarget.cpp
blob: 9f21200623477d59557338e906bfbd9c456a436e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "cachedflushtarget.h"

namespace proton {

CachedFlushTarget::CachedFlushTarget(const IFlushTarget::SP &target)
    : IFlushTarget(target->getName(), target->getType(), target->getComponent()),
      _target(target),
      _flushedSerialNum(target->getFlushedSerialNum()),
      _lastFlushTime(target->getLastFlushTime()),
      _memoryGain(target->getApproxMemoryGain()),
      _diskGain(target->getApproxDiskGain()),
      _approxBytesToWriteToDisk(target->getApproxBytesToWriteToDisk()),
      _replay_operation_cost(target->get_replay_operation_cost()),
      _needUrgentFlush(target->needUrgentFlush()),
      _priority(target->getPriority())
{ }

} // namespace proton