summaryrefslogtreecommitdiffstats
path: root/searchcommon/src
diff options
context:
space:
mode:
Diffstat (limited to 'searchcommon/src')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/attributecontent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/attributecontent.h b/searchcommon/src/vespa/searchcommon/attribute/attributecontent.h
index 508a2d04c27..72ce1754d71 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/attributecontent.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/attributecontent.h
@@ -145,7 +145,7 @@ public:
search::attribute::IAttributeVector::DocId docId)
{
uint32_t count = attribute.get(docId, data(), capacity());
- if (count > capacity()) {
+ while (count > capacity()) {
allocate(count);
count = attribute.get(docId, data(), capacity());
}