-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: fix leak for compaction bytes-in-progress metric
We were counting flushes for the bytes-in-progress metric (which is not the intention of the metric). When replaying the WAL, we perform a flush but do not clean up the metric, resulting in an one-time leak. The result is that we always see the same non-zero value instead of zero. The fix is to not count at all during flushes. As a test, we run an invariants-only check on the metrics on close; we could potentially check other things here as well. This new assertion fails without this fix. Fixes #2548
- Loading branch information
1 parent
f72555c
commit 49ae545
Showing
2 changed files
with
16 additions
and
5 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
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