core: journal the snapshot inside leveldb, not a flat file

This commit is contained in:
Péter Szilágyi committed 2020-02-25 12:51:10 +02:00
1 parent d5d7c0c24b
commit fd39f722a3
7 files changed
+72 -61

No files matched your search

+1 -4
View File
@@ -20,8 +20,6 @@ import (
"bytes"
"math/big"
"math/rand"
"os"
"path"
"testing"
"github.com/VictoriaMetrics/fastcache"
@@ -343,7 +341,6 @@ func BenchmarkJournal(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
f, _, _ := layer.Journal(path.Join(os.TempDir(), "difflayer_journal.tmp"))
f.Close()
layer.Journal(new(bytes.Buffer))
}
}