also have a minimum value for concurrent recoveries, at 3

This commit is contained in:
kimchy 2010-08-20 17:28:31 +03:00
parent f62f7b8ffe
commit 9acae60dbf
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,8 @@ public class RecoveryThrottler extends AbstractComponent {
// tap it at 10 (is it a good number?)
if (defaultConcurrent > 10) {
defaultConcurrent = 10;
} else if (defaultConcurrent < 3) {
defaultConcurrent = 3;
}
concurrentRecoveries = componentSettings.getAsInt("concurrent_recoveries", defaultConcurrent);