Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
pull/5805/head
Krasi Georgiev 6 years ago
parent fced260a24
commit db127a60e0

@ -1,6 +1,6 @@
## master / unreleased
- [CHANGE] `NewLeveledCompactor` takes a context so that a compaction is canceled when closing the db.
- [ENHANCEMENT] When closing the db any running compaction will be cancelled so it doesn't block.
## 0.3.0

@ -775,6 +775,6 @@ func TestCancelCompactions(t *testing.T) {
start := time.Now()
<-dbClosed
actT := time.Since(start)
expT := time.Duration(50000000)
expT := time.Duration(100000000)
testutil.Assert(t, actT < expT, "closing the db took more than expected. exp: <%v, act: %v", expT, actT)
}

Loading…
Cancel
Save