blob: 5842965a18a8e73e9718254c5cc65c9a705aa330 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "updatedonecontext.h"
#include <vespa/document/fieldvalue/document.h>
using document::Document;
namespace proton {
UpdateDoneContext::UpdateDoneContext(IDestructorCallback::SP token, IPendingLidTracker::Token uncommitted, const document::DocumentUpdate::SP &upd)
: OperationDoneContext(std::move(token)),
_uncommitted(std::move(uncommitted)),
_upd(upd),
_doc()
{
}
UpdateDoneContext::~UpdateDoneContext() = default;
void
UpdateDoneContext::setDocument(std::shared_future<std::unique_ptr<const Document>> doc)
{
_doc = std::move(doc);
}
} // namespace proton
|