Skip to content

Commit e7b64c4

Browse files
committed
sql: eliminate unnecessary error allocations
Release note: None
1 parent a563f84 commit e7b64c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sql/conn_executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3838,7 +3838,7 @@ func (ex *connExecutor) resetEvalCtx(evalCtx *extendedEvalContext, txn *kv.Txn,
38383838
// See resetPlanner for more context on setting the maximum timestamp for
38393839
// AOST read retries.
38403840
var minTSErr *kvpb.MinTimestampBoundUnsatisfiableError
3841-
if err := ex.state.mu.autoRetryReason; err != nil && errors.As(err, &minTSErr) {
3841+
if err := ex.state.mu.autoRetryReason; err != nil && errors.Is(err, minTSErr) {
38423842
evalCtx.AsOfSystemTime.MaxTimestampBound = ex.extraTxnState.descCollection.GetMaxTimestampBound()
38433843
} else if newTxn {
38443844
evalCtx.AsOfSystemTime = nil

0 commit comments

Comments
 (0)