From 325594751f652d6836c883e522a7fc289b4061bf Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Thu, 23 Oct 2008 05:54:18 +0000 Subject: [PATCH] SOLR-561 update -- Increment packetsWritten variable after writing out the packet git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@707279 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/handler/ReplicationHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java/org/apache/solr/handler/ReplicationHandler.java b/src/java/org/apache/solr/handler/ReplicationHandler.java index 2a045ca264b..903be6d3142 100644 --- a/src/java/org/apache/solr/handler/ReplicationHandler.java +++ b/src/java/org/apache/solr/handler/ReplicationHandler.java @@ -789,6 +789,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw if(indexVersion != null && (packetsWritten % 5 == 0)){ delPolicy.setReserveDuration(indexVersion, reserveCommitDuration); } + packetsWritten++; } } else { writeNothing();