Skip to content

Commit

Permalink
dummy change
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
  • Loading branch information
shlomi-noach committed Aug 28, 2023
1 parent d6b4de8 commit 307665b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/vttablet/onlineddl/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func registerOnlineDDLFlags(fs *pflag.FlagSet) {
}

var migrationNextCheckIntervals = []time.Duration{1 * time.Second, 5 * time.Second, 10 * time.Second, 20 * time.Second}
var maxConstraintNameLength = 64
var MaxConstraintNameLength = 64

const (
maxPasswordLength = 32 // MySQL's *replication* password may not exceed 32 characters
Expand Down Expand Up @@ -1094,7 +1094,7 @@ func (e *Executor) validateAndEditCreateTableStatement(ctx context.Context, onli
}
hashExists[hash] = true
suffix := "_" + hash
maxAllowedNameLength := maxConstraintNameLength - len(suffix)
maxAllowedNameLength := MaxConstraintNameLength - len(suffix)
newName := oldName
if len(newName) > maxAllowedNameLength {
newName = newName[0:maxAllowedNameLength]
Expand Down

0 comments on commit 307665b

Please sign in to comment.