Skip to content

Commit

Permalink
refactor: better messages
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <[email protected]>
  • Loading branch information
Rustin170506 committed May 22, 2024
1 parent 2aa6c9f commit 5fd041c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sessionctx/variable/sysvar.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ var defaultSysVars = []*SysVar{
SetGlobal: func(_ context.Context, s *SessionVars, val string) error {
presist := TiDBOptOn(val)
if !presist && EnableColumnTracking.Load() {
return errors.Errorf("tidb_persist_analyze_options can't be set to OFF when tidb_enable_column_tracking is ON, it will cause column tracking information lost")
return errors.Errorf("tidb_persist_analyze_options option cannot be set to OFF when tidb_enable_column_tracking is ON, as this will result in the loss of column tracking information")
}
PersistAnalyzeOptions.Store(presist)
return nil
Expand Down Expand Up @@ -1152,7 +1152,7 @@ var defaultSysVars = []*SysVar{
}
persist := PersistAnalyzeOptions.Load()
if enabled && !persist {
return errors.Errorf("tidb_enable_column_tracking can not be set to ON when tidb_persist_analyze_options is set to OFF, it will cause we cannot preserve column tracking information")
return errors.Errorf("tidb_enable_column_tracking option cannot be set to ON when tidb_persist_analyze_options is set to OFF, as this will prevent the preservation of column tracking information")
}
EnableColumnTracking.Store(enabled)
return nil
Expand Down

0 comments on commit 5fd041c

Please sign in to comment.