kv: address comments

This commit is contained in:
dongxu
2015-11-24 19:18:53 +08:00
parent 36f100ece4
commit cd3d3cd6ae

View File

@ -25,7 +25,9 @@ func IsRetryableError(err error) bool {
return false
}
if terror.ErrorEqual(err, ErrRetryable) {
if terror.ErrorEqual(err, ErrRetryable) ||
terror.ErrorEqual(err, ErrLockConflict) ||
terror.ErrorEqual(err, ErrConditionNotMatch) {
return true
}