You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2018/01/30 07:29:34 UTC
lucene-solr:branch_7x: SOLR-11879: moved the peek() call inside the
for loop
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x 3527fa597 -> 1ef988a26
SOLR-11879: moved the peek() call inside the for loop
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/1ef988a2
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/1ef988a2
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/1ef988a2
Branch: refs/heads/branch_7x
Commit: 1ef988a26378137b1e1f022985dacee1f557f4fc
Parents: 3527fa5
Author: Noble Paul <no...@apache.org>
Authored: Tue Jan 30 18:25:48 2018 +1100
Committer: Noble Paul <no...@apache.org>
Committed: Tue Jan 30 18:29:18 2018 +1100
----------------------------------------------------------------------
.../src/java/org/apache/solr/handler/loader/JavabinLoader.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/1ef988a2/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java b/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java
index 4264476..f502a8e 100644
--- a/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java
+++ b/solr/core/src/java/org/apache/solr/handler/loader/JavabinLoader.java
@@ -103,8 +103,8 @@ public class JavabinLoader extends ContentStreamLoader {
}
};
FastInputStream in = FastInputStream.wrap(stream);
- if (in.peek() == -1) return;
for (; ; ) {
+ if (in.peek() == -1) return;
try {
update = new JavaBinUpdateRequestCodec().unmarshal(in, handler);
} catch (EOFException e) {