Skip to content

Commit 4b485e0

Browse files
committed
comment
1 parent 105f401 commit 4b485e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/lightning/common/common.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ func GetMaxAutoIDBase(r autoid.Requirement, dbID int64, tblInfo *model.TableInfo
5454
if err != nil {
5555
return 0, errors.Trace(err)
5656
}
57-
maxNextID := int64(0)
57+
// all next auto id starts from 1.
58+
maxNextID := int64(1)
5859
for _, alloc := range allocators {
5960
nextID, err := alloc.NextGlobalAutoID()
6061
if err != nil {

0 commit comments

Comments
 (0)