forked from justinpettit/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovsdb: Use DB load time, not on-disk commit times, for compaction.
The ovsdb-server compaction timing logic is written assuming monotonic time at milliscond resolution but it calculated the next compaction time based on the oldest commit in the database. This was a problem because commit timestamps are written in wall-clock time to second resolution. This commit calculates the next compaction time based on the time when the database was first loaded or the last compaction was done, both in monotonic time at millisecond resolution. Signed-off-by: Paul Ingram <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters