From db127a60e0e990d4ac26b5c93a956bc394ccd6b9 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Sat, 8 Dec 2018 01:06:48 +0200 Subject: [PATCH] changelog Signed-off-by: Krasi Georgiev --- CHANGELOG.md | 2 +- compact_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fec65fb2..7ec9f9eba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/compact_test.go b/compact_test.go index 36bcb220c..3b63db313 100644 --- a/compact_test.go +++ b/compact_test.go @@ -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) }