Skip to content

Commit

Permalink
Grow destination array again if it is still too small.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tor Egge authored and Tor Egge committed Sep 6, 2018
1 parent 61ec01d commit a78ab89
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -145,7 +145,7 @@ class AttributeContent
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());
}
Expand Down

0 comments on commit a78ab89

Please sign in to comment.