diff options
author | Arne Juul <arnej@vespa.ai> | 2024-01-22 14:57:16 +0000 |
---|---|---|
committer | Arne Juul <arnej@vespa.ai> | 2024-01-22 14:57:16 +0000 |
commit | 6fbebc50d2fb56a74b9c4e51d4a5c328751d33a6 (patch) | |
tree | 94324a52d9f2da016c37115beb8cf007b459d947 /searchcore | |
parent | ccda952db487445f3522eecbcbfee4a6f6a90c32 (diff) |
must not do two_phase_put for partial update
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp index f81b47583b9..30ba7d320f7 100644 --- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp +++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp @@ -627,7 +627,7 @@ AttributeWriter::internalPut(SerialNum serialNum, const Document &doc, DocumentI bool allAttributes, OnWriteDoneType onWriteDone) { for (const auto &wc : _writeContexts) { - if (wc.use_two_phase_put()) { + if (allAttributes && wc.use_two_phase_put()) { assert(wc.getFields().size() == 1); wc.consider_build_field_paths(doc); auto prepare_task = std::make_unique<PreparePutTask>(serialNum, lid, wc, doc); |