SOLR-3361: fix "maxNumberOfBackups" to work if backups are triggered on commit

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1329413 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Dyer 2012-04-23 20:06:05 +00:00
parent 936b0bd389
commit d580f9f2a6
1 changed files with 3 additions and 0 deletions

View File

@ -867,6 +867,9 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
if(!addNumberToKeepInRequest) {
if(random().nextBoolean()) {
masterClient.commit();
} else {
backupThread = new BackupThread(addNumberToKeepInRequest, backupKeepParamName);
backupThread.start();
}
} else {
backupThread = new BackupThread(addNumberToKeepInRequest, backupKeepParamName);