Skip to content

Commit

Permalink
gc: fix log format for gc worker (pingcap#7852)
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor1996 authored and Lingyu Song committed Oct 10, 2018
1 parent d60a1a2 commit 1a9741d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/tikv/gcworker/gc_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func (w *GCWorker) calculateNewSafePoint(now time.Time) (*time.Time, error) {
safePoint := now.Add(-*lifeTime)
// We should never decrease safePoint.
if lastSafePoint != nil && safePoint.Before(*lastSafePoint) {
log.Info("[gc worker] leaderTick on %s: last safe point (%v) is later than current one (%v). no need to gc. "+
log.Infof("[gc worker] leaderTick on %s: last safe point (%v) is later than current one (%v). no need to gc. "+
"this might be caused by manually enlarging gc lifetime.", w.uuid, lastSafePoint, safePoint)
return nil, nil
}
Expand Down

0 comments on commit 1a9741d

Please sign in to comment.