From eb3d6478f9b9bd0ca3db20fd687e47d9a9ac15c4 Mon Sep 17 00:00:00 2001 From: dongxu Date: Tue, 1 Dec 2015 17:46:06 +0800 Subject: [PATCH] *: add themis retry error check remove go-themis circular dependency --- kv/txn.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kv/txn.go b/kv/txn.go index 21b3274736..cb0bf9aed6 100644 --- a/kv/txn.go +++ b/kv/txn.go @@ -21,6 +21,7 @@ import ( "github.com/juju/errors" "github.com/ngaut/log" + "github.com/pingcap/go-themis" "github.com/pingcap/tidb/terror" ) @@ -33,6 +34,7 @@ func IsRetryableError(err error) bool { if terror.ErrorEqual(err, ErrRetryable) || terror.ErrorEqual(err, ErrLockConflict) || terror.ErrorEqual(err, ErrConditionNotMatch) || + terror.ErrorEqual(err, themis.ErrRetryable) || // HBase exception message will tell you if you should retry or not strings.Contains(err.Error(), "try again later") { return true