修正一直重试上传出错片的Bug。

This commit is contained in:
Liang Tao
2014-04-08 10:48:25 +08:00
parent ede5f2400a
commit 5aa5934da7
+2
View File
@@ -230,6 +230,8 @@ module Qiniu
break
elsif i == retry_times && data["crc32"] != body_crc32
Log.logger.error %Q(Uploading block error. Expected crc32: #{body_crc32}, but got: #{data["crc32"]})
# 上传重试达到上限,直接返回错误
return [code, data]
end
end
end