check the progress in case the index size has not been set yet...
This commit is contained in:
parent
9f0d5f8ef1
commit
f62f7b8ffe
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue