diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-09-05 14:36:18 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-09-06 08:30:07 +0000 |
commit | a78ab890b83338dfae0d3004f2d04ef3aa80691e (patch) | |
tree | 1b78fb854c0a7ea89641f146fc36fe7a51e22667 /searchcommon | |
parent | 61ec01d27f00171f0029840f8f71eb395921d1c2 (diff) |
Grow destination array again if it is still too small.
Diffstat (limited to 'searchcommon')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/attributecontent.h | 2 |
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()); } |