Remove duplicate code in ledger_cleanup_compaction_test (#22204)
This commit is contained in:
parent
94a9b712b6
commit
557d35ec79
|
@ -437,18 +437,6 @@ mod tests {
|
|||
}
|
||||
}
|
||||
|
||||
if stop_size_bytes > 0 {
|
||||
if storage_previous >= stop_size_bytes {
|
||||
stop_size_bytes_exceeded_iterations += 1;
|
||||
} else {
|
||||
stop_size_bytes_exceeded_iterations = 0;
|
||||
}
|
||||
|
||||
if stop_size_bytes_exceeded_iterations > stop_size_iterations {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if finished_batch >= num_batches {
|
||||
break;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue