mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Looks like a bit more delay is needed to smooth the latency.
This commit is contained in:
@@ -823,9 +823,8 @@ Status DBImpl::FinishCompactionOutputFile(CompactionState* compact,
|
||||
(unsigned long long) current_entries,
|
||||
(unsigned long long) current_bytes);
|
||||
|
||||
// rate-limit compaction file creation
|
||||
// with a 25ms pause
|
||||
env_->SleepForMicroseconds(25000);
|
||||
// rate-limit compaction file creation with a 100ms pause
|
||||
env_->SleepForMicroseconds(100000);
|
||||
}
|
||||
}
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user