Skip to content

Commit

Permalink
Merge pull request #278 from dolthub/andy/clean-up-auto-inc
Browse files Browse the repository at this point in the history
remove sync.Once from autoincrement expression
  • Loading branch information
andy-wm-arthur authored Jan 29, 2021
2 parents 1e05f33 + 80228fa commit cc04b53
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sql/expression/autoincrement.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package expression

import (
"fmt"
"sync"

"gopkg.in/src-d/go-errors.v1"

"github.com/dolthub/go-mysql-server/sql"
Expand All @@ -22,7 +20,6 @@ type AutoIncrement struct {
autoIncVal *Literal
autoTbl sql.AutoIncrementTable
autoCol *sql.Column
sync.Once
}

// NewAutoIncrement creates a new AutoIncrement expression.
Expand Down Expand Up @@ -53,7 +50,6 @@ func NewAutoIncrement(ctx *sql.Context, table sql.Table, given sql.Expression) (
&Literal{last, autoCol.Type},
autoTbl,
autoCol,
sync.Once{},
}, nil
}

Expand Down Expand Up @@ -122,7 +118,6 @@ func (i *AutoIncrement) WithChildren(children ...sql.Expression) (sql.Expression
i.autoIncVal,
i.autoTbl,
i.autoCol,
sync.Once{},
}, nil
}

Expand Down

0 comments on commit cc04b53

Please sign in to comment.