mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 04:25:51 +00:00
Rate limit compactions with a 25ms pause after each complete file.
This commit is contained in:
@@ -813,6 +813,10 @@ Status DBImpl::FinishCompactionOutputFile(CompactionState* compact,
|
|||||||
(unsigned long long) output_number,
|
(unsigned long long) output_number,
|
||||||
(unsigned long long) current_entries,
|
(unsigned long long) current_entries,
|
||||||
(unsigned long long) current_bytes);
|
(unsigned long long) current_bytes);
|
||||||
|
|
||||||
|
// rate-limit compaction file creation
|
||||||
|
// with a 25ms pause
|
||||||
|
env_->SleepForMicroseconds(25000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
|
|||||||
Reference in New Issue
Block a user