Skip to content
Snippets Groups Projects
Commit c5ff3bf6 authored by Jeff Yemin's avatar Jeff Yemin Committed by Robert J. Moore
Browse files

Ensure capacity in results for MongoDBClient.scan

parent 8ae0bd30
No related branches found
No related tags found
No related merge requests found
......@@ -353,6 +353,9 @@ public class MongoDbClient extends DB {
System.err.println("Nothing found in scan for key " + startkey);
return 1;
}
result.ensureCapacity(recordcount);
while (cursor.hasNext()) {
HashMap<String, ByteIterator> resultMap = new HashMap<String, ByteIterator>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment