Throttle compaction on temporary DB

This commit is contained in:
Andrey Smirnov
2017-02-23 01:01:17 +03:00
parent f2dc4eeec9
commit 4c06e26d85
2 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ func (index *ContentsIndex) Empty() bool {
// WriteTo dumps sorted mapping of files to qualified package names
func (index *ContentsIndex) WriteTo(w io.Writer) (int64, error) {
// For performance reasons push method wrote on key per path and package
// in this method we now need to merge all pkg with have the same path
// in this method we now need to merge all packages which have the same path
// and write it to contents index file
var n int64