From e70bec79cd5a13fce3acc006f2d8254ac06052dc Mon Sep 17 00:00:00 2001 From: kimchy Date: Thu, 25 Feb 2010 21:34:41 +0200 Subject: [PATCH] fix wrong iteration when getting back terms --- .../java/org/elasticsearch/action/terms/ShardTermsResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/action/terms/ShardTermsResponse.java b/modules/elasticsearch/src/main/java/org/elasticsearch/action/terms/ShardTermsResponse.java index 1a2567ad993..830ed2ff663 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/action/terms/ShardTermsResponse.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/action/terms/ShardTermsResponse.java @@ -101,9 +101,9 @@ public class ShardTermsResponse extends BroadcastShardOperationResponse { out.writeUTF(entry.getKey()); out.writeInt(entry.getValue().size()); for (TObjectIntIterator it = entry.getValue().iterator(); it.hasNext();) { + it.advance(); out.writeUTF(it.key()); out.writeInt(it.value()); - it.advance(); } } }