Permalink
Browse files

Attempted fix for #112 - stop the AND happening before the OR.

  • Loading branch information...
anjackson committed Sep 6, 2017
1 parent cef396f commit b36ca7209568f3203db189af777eda4ecb472f6e
Showing with 1 addition and 1 deletion.
  1. +1 −1 warc-indexer/src/main/java/uk/bl/wa/indexer/WARCIndexerCommand.java
@@ -380,7 +380,7 @@ private static void commit( SolrWebServer solrWeb) {
*/
private static void checkSubmission(SolrWebServer solr,
List<SolrInputDocument> docs, int limit, boolean force) {
if (docs.size() > 0 && docs.size() >= limit || force) {
if (docs.size() > 0 && (docs.size() >= limit || force)) {
try {
final long start = System.nanoTime();
if (log.isTraceEnabled() || debugMode) {

0 comments on commit b36ca72

Please sign in to comment.