File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1040,7 +1040,7 @@ func (tc *TxnCoordSender) updateStateLocked(
1040
1040
if kvpb .ErrPriority (pErr .GoError ()) != kvpb .ErrorScoreUnambiguousError {
1041
1041
tc .mu .txnState = txnError
1042
1042
tc .mu .storedErr = kvpb .NewError (& kvpb.TxnAlreadyEncounteredErrorError {
1043
- PrevError : pErr . String ( ),
1043
+ PrevError : redact . Sprintf ( "%v" , pErr ),
1044
1044
})
1045
1045
}
1046
1046
Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ message TransactionRetryWithProtoRefreshError {
573
573
message TxnAlreadyEncounteredErrorError {
574
574
// prev_error is the message from the error that the txn encountered
575
575
// previously.
576
- optional string prev_error = 1 [(gogoproto.nullable ) = false ];
576
+ optional string prev_error = 1 [(gogoproto.nullable ) = false , (gogoproto .customtype ) = "github.com/cockroachdb/redact.RedactableString" ];
577
577
}
578
578
579
579
// An IntegerOverflowError indicates that an operation was aborted because
You can’t perform that action at this time.
0 commit comments