diff --git a/store/gcworker/gc_worker.go b/store/gcworker/gc_worker.go index 87a990f7f096c..a14780b878f19 100644 --- a/store/gcworker/gc_worker.go +++ b/store/gcworker/gc_worker.go @@ -79,7 +79,7 @@ type GCWorker struct { batchResolveLocks func(locks []*txnlock.Lock, regionID tikv.RegionVerID, safepoint uint64) (ok bool, err error) resolveLocks func(locks []*txnlock.Lock, lowResolutionTS uint64) (int64, error) } - logBackupEnabled bool + logBackupEnabled bool // check log-backup task existed. } // NewGCWorker creates a GCWorker instance. @@ -1794,7 +1794,7 @@ func (w *GCWorker) checkLeader(ctx context.Context) (bool, error) { se := createSession(w.store) defer se.Close() - w.logBackupEnabled = utils.CheckLogBackupEnabled(se) + w.logBackupEnabled = utils.IsLogBackupInUse(se) _, err := se.ExecuteInternal(ctx, "BEGIN") if err != nil { return false, errors.Trace(err)