etcdserver: Fix txn request 'took too long' warnings to use loggable request stringer

This commit is contained in:
Joe Betz
2018-06-11 16:58:48 -07:00
committed by Gyuho Lee
parent 07f833ae3e
commit b7c19232bc
2 changed files with 5 additions and 4 deletions

View File

@@ -109,7 +109,8 @@ func warnOfExpensiveRequest(now time.Time, reqStringer fmt.Stringer, respMsg pro
warnOfExpensiveGenericRequest(now, reqStringer, "", resp, err)
}
func warnOfExpensiveReadOnlyTxnRequest(now time.Time, reqStringer fmt.Stringer, txnResponse *pb.TxnResponse, err error) {
func warnOfExpensiveReadOnlyTxnRequest(now time.Time, r *pb.TxnRequest, txnResponse *pb.TxnResponse, err error) {
reqStringer := pb.NewLoggableTxnRequest(r)
var resp string
if !isNil(txnResponse) {
var resps []string