Fixed a bug #18(losing check retry error)

This commit is contained in:
Takeshi Nakatani 2014-03-30 06:40:49 +00:00
parent c003076053
commit d7563309a2

View File

@ -3127,8 +3127,12 @@ int S3fsMultiCurl::MultiRead(void)
// For retry // For retry
if(RetryCallback){ if(RetryCallback){
retrycurl = RetryCallback(s3fscurl); if(NULL != (retrycurl = RetryCallback(s3fscurl))){
cMap_all[retrycurl->hCurl] = retrycurl; cMap_all[retrycurl->hCurl] = retrycurl;
}else{
// do not care, but set...
isRetry = false;
}
} }
if(s3fscurl != retrycurl){ if(s3fscurl != retrycurl){
s3fscurl->DestroyCurlHandle(); s3fscurl->DestroyCurlHandle();