Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log-backup: add the switch for log backup #36115

Merged
merged 19 commits into from
Jul 15, 2022
Prev Previous commit
Next Next commit
udpate code
  • Loading branch information
3pointer committed Jul 14, 2022
commit c02b03109668584cfd236818a22d345c3800f863
2 changes: 1 addition & 1 deletion br/pkg/utils/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type DBExecutor interface {
// 3. Telemetry of log backup feature usage statistics.
// NOTE: this result shouldn't be cached by caller. because it may change every time in one cluster.
func IsLogBackupEnabled(ctx sqlexec.RestrictedSQLExecutor) bool {
var valStr = "show config where name = 'log-backup.enable'"
valStr := "show config where name = 'log-backup.enable'"
internalCtx := kv.WithInternalSourceType(context.Background(), kv.InternalTxnBR)
rows, fields, errSQL := ctx.ExecRestrictedSQL(internalCtx, nil, valStr)
if errSQL != nil {
Expand Down