Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
qw4990 committed Dec 6, 2023
1 parent 72adf1a commit 218e73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bindinfo/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (h *BindHandle) Update(fullLoad bool) (err error) {
if row.GetString(0) == BuiltinPseudoSQL4BindLock {
continue
}
sqlDigest, meta, err := h.newBindRecord(sctx, row)
sqlDigest, meta, err := newBindRecord(sctx, row)

// Update lastUpdateTime to the newest one.
// Even if this one is an invalid bind.
Expand Down Expand Up @@ -587,7 +587,7 @@ func (h *BindHandle) GetMemCapacity() (memCapacity int64) {
}

// newBindRecord builds BindRecord from a tuple in storage.
func (h *BindHandle) newBindRecord(sctx sessionctx.Context, row chunk.Row) (string, *BindRecord, error) {
func newBindRecord(sctx sessionctx.Context, row chunk.Row) (string, *BindRecord, error) {
status := row.GetString(3)
// For compatibility, the 'Using' status binding will be converted to the 'Enabled' status binding.
if status == Using {
Expand Down

0 comments on commit 218e73a

Please sign in to comment.