Skip to content

Commit

Permalink
Merge pull request #12314 from viviyww/incorrect-log
Browse files Browse the repository at this point in the history
etcdserver: fix log info error
  • Loading branch information
jingyih authored Sep 21, 2020
2 parents de1550d + ff516e3 commit 353fcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etcdserver/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func warnOfExpensiveReadOnlyTxnRequest(lg *zap.Logger, now time.Time, r *pb.TxnR
}
resp = fmt.Sprintf("responses:<%s> size:%d", strings.Join(resps, " "), proto.Size(txnResponse))
}
warnOfExpensiveGenericRequest(lg, now, reqStringer, "read-only range ", resp, err)
warnOfExpensiveGenericRequest(lg, now, reqStringer, "read-only txn ", resp, err)
}

func warnOfExpensiveReadOnlyRangeRequest(lg *zap.Logger, now time.Time, reqStringer fmt.Stringer, rangeResponse *pb.RangeResponse, err error) {
Expand Down

0 comments on commit 353fcf0

Please sign in to comment.