summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-03-23 12:10:25 +0000
committerArne H Juul <arnej@yahooinc.com>2022-03-23 13:14:26 +0000
commit674eeb5a96d80b842263dc2daf9af6327bee3db6 (patch)
treeb2ead310b5fac8be1caab78ea66c5f41e7b97446 /document
parentc7c758dc9cbfb94eeb4208a20152011543973c9b (diff)
just use data type known by the annotation type
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/serialization/annotationdeserializer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/document/src/vespa/document/serialization/annotationdeserializer.cpp b/document/src/vespa/document/serialization/annotationdeserializer.cpp
index e3192459574..9e7a35cfdcb 100644
--- a/document/src/vespa/document/serialization/annotationdeserializer.cpp
+++ b/document/src/vespa/document/serialization/annotationdeserializer.cpp
@@ -119,9 +119,10 @@ void AnnotationDeserializer::readAnnotation(Annotation & annotation) {
if (features & 2) { // has value
uint32_t data_type_id = readValue<uint32_t>(_stream);
- const DataType *data_type = _repo.getDataType(data_type_id);
+ const DataType *data_type = type->getDataType();
if (!data_type) {
- LOG(warning, "Unknown data type %d", data_type_id);
+ LOG(warning, "Skipping payload (data type %d) for annotation type %s",
+ data_type_id, type->getName().c_str());
_stream.adjustReadPos(size - sizeof(uint32_t));
} else {
FieldValue::UP value(data_type->createFieldValue());