Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix a compaction induce latency issue
The compaction behavior is changed in commit [02635](0263597) and introduces a latency issue. To be more speicific, the `ticker.C` acts as a fixed timer that triggers every 10ms, regardless of how long each batch of compaction takes. This means that if a previous compaction batch takes longer than 10ms, the next batch starts immediately, making compaction a blocking operation for etcd. To fix the issue, this commit revert the compaction to the previous behavior which ensures a 10ms delay between each batch of compaction, allowing other read and write operations to proceed smoothly.
- Loading branch information