summaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-09-05 14:36:18 +0000
committerTor Egge <Tor.Egge@oath.com>2018-09-06 08:30:07 +0000
commita78ab890b83338dfae0d3004f2d04ef3aa80691e (patch)
tree1b78fb854c0a7ea89641f146fc36fe7a51e22667 /searchcommon
parent61ec01d27f00171f0029840f8f71eb395921d1c2 (diff)
Grow destination array again if it is still too small.
Diffstat (limited to 'searchcommon')
-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());
}