summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@vespa.ai>2024-02-23 10:54:37 +0000
committerTor Brede Vekterli <vekterli@vespa.ai>2024-02-23 10:54:37 +0000
commitdabacd94dbdae0a11ee4eb5c2ba0b9e310e15364 (patch)
tree706b0faead313959ef1de78c77d88943333fbe87 /document
parent60cfb23d326c2aac7e443094fc5d49d46e2370e7 (diff)
Explicitly use HEAD serializer for document update instances
For some assuredly exciting reason, `DocumentUpdate.serialize()` by default uses the v6 protocol version instead of the HEAD version. This caused tensor updates (which are only available on the HEAD version) to fail serialization.
Diffstat (limited to 'document')
-rw-r--r--document/src/main/java/com/yahoo/document/DocumentUpdate.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/document/src/main/java/com/yahoo/document/DocumentUpdate.java b/document/src/main/java/com/yahoo/document/DocumentUpdate.java
index ebaf821c29b..26254f3c081 100644
--- a/document/src/main/java/com/yahoo/document/DocumentUpdate.java
+++ b/document/src/main/java/com/yahoo/document/DocumentUpdate.java
@@ -347,6 +347,7 @@ public class DocumentUpdate extends DocumentOperation implements Iterable<FieldP
}
public final void serialize(GrowableByteBuffer buf) {
+ // TODO shouldn't this be createHead()?!
serialize(DocumentSerializerFactory.create6(buf));
}