File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ var accChangeSetDupSort = Migration{
2626
2727 changeSetBucket := dbutils .PlainAccountChangeSetBucket
2828 cmp := db .(ethdb.HasTx ).Tx ().Comparator (dbutils .PlainStorageChangeSetBucket )
29- buf := etl .NewSortableBuffer (etl .BufferOptimalSize * 4 )
29+ buf := etl .NewSortableBuffer (etl .BufferOptimalSize )
3030 buf .SetComparator (cmp )
3131
3232 collectorR , err1 := etl .NewCollectorFromFiles (tmpdir )
@@ -130,7 +130,7 @@ var storageChangeSetDupSort = Migration{
130130 const loadStep = "load"
131131 changeSetBucket := dbutils .PlainStorageChangeSetBucket
132132 cmp := db .(ethdb.HasTx ).Tx ().Comparator (dbutils .PlainStorageChangeSetBucket )
133- buf := etl .NewSortableBuffer (etl .BufferOptimalSize * 4 )
133+ buf := etl .NewSortableBuffer (etl .BufferOptimalSize )
134134 buf .SetComparator (cmp )
135135
136136 collectorR , err1 := etl .NewCollectorFromFiles (tmpdir )
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ var historyAccBitmap = Migration{
5454 goto LoadStep
5555 }
5656
57- collectorB = etl .NewCriticalCollector (tmpdir + "1" , etl .NewSortableBuffer (etl .BufferOptimalSize * 4 ))
57+ collectorB = etl .NewCriticalCollector (tmpdir + "1" , etl .NewSortableBuffer (etl .BufferOptimalSize ))
5858 defer func () {
5959 // don't clean if error or panic happened
6060 if err != nil {
@@ -171,7 +171,7 @@ var historyStorageBitmap = Migration{
171171 goto LoadStep
172172 }
173173
174- collectorB = etl .NewCriticalCollector (tmpdir + "1" , etl .NewSortableBuffer (etl .BufferOptimalSize * 4 ))
174+ collectorB = etl .NewCriticalCollector (tmpdir + "1" , etl .NewSortableBuffer (etl .BufferOptimalSize ))
175175 defer func () {
176176 // don't clean if error or panic happened
177177 if err != nil {
Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ var transactionsTable = Migration{
7979 goto LoadStep
8080 }
8181
82- collectorB = etl .NewCriticalCollector (tmpdir + "1" , etl .NewSortableBuffer (etl .BufferOptimalSize * 4 ))
83- collectorT = etl .NewCriticalCollector (tmpdir + "2" , etl .NewSortableBuffer (etl .BufferOptimalSize * 4 ))
82+ collectorB = etl .NewCriticalCollector (tmpdir + "1" , etl .NewSortableBuffer (etl .BufferOptimalSize ))
83+ collectorT = etl .NewCriticalCollector (tmpdir + "2" , etl .NewSortableBuffer (etl .BufferOptimalSize ))
8484 defer func () {
8585 // don't clean if error or panic happened
8686 if err != nil {
You can’t perform that action at this time.
0 commit comments