check the progress in case the index size has not been set yet...

This commit is contained in:
kimchy 2010-08-20 17:17:32 +03:00
parent 9f0d5f8ef1
commit f62f7b8ffe
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ public class GatewayRecoveryStatus {
public int indexRecoveryProgress() {
if (recoveredIndexSize == 0) {
if (indexSize == reusedIndexSize) {
if (indexSize != 0 && indexSize == reusedIndexSize) {
return 100;
}
return 0;

View File

@ -160,7 +160,7 @@ public class PeerRecoveryStatus {
public int indexRecoveryProgress() {
if (recoveredIndexSize == 0) {
if (indexSize == reusedIndexSize) {
if (indexSize != 0 && indexSize == reusedIndexSize) {
return 100;
}
return 0;