Skip to content

Commit 535f372

Browse files
Reduce the minimal chunk size from 100 to 10.
1 parent d6c8363 commit 535f372

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/base/context.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"sync/atomic"
1616
"time"
1717

18-
"github.com/satori/go.uuid"
18+
uuid "github.com/satori/go.uuid"
1919

2020
"github.com/github/gh-ost/go/mysql"
2121
"github.com/github/gh-ost/go/sql"
@@ -551,8 +551,8 @@ func (this *MigrationContext) SetMaxLagMillisecondsThrottleThreshold(maxLagMilli
551551
}
552552

553553
func (this *MigrationContext) SetChunkSize(chunkSize int64) {
554-
if chunkSize < 100 {
555-
chunkSize = 100
554+
if chunkSize < 10 {
555+
chunkSize = 10
556556
}
557557
if chunkSize > 100000 {
558558
chunkSize = 100000

0 commit comments

Comments
 (0)