diff --git a/pkg/roachpb/errors.go b/pkg/roachpb/errors.go index e03f86ff300b..0b19df824e9c 100644 --- a/pkg/roachpb/errors.go +++ b/pkg/roachpb/errors.go @@ -191,7 +191,7 @@ func (e *Error) UpdateTxn(o *Transaction) { return } if e.UnexposedTxn == nil { - e.UnexposedTxn = o + e.UnexposedTxn = o.Clone() } else { e.UnexposedTxn.Update(o) }