Changes codes

1) Changed condition for retrying multipart error
   Changes condition that 404 is not retrying, other case is retrying,
   when multipart request failed.

2) file type wrong
   fdcache.h file type is wrong, so that fixed it.



git-svn-id: http://s3fs.googlecode.com/svn/trunk@498 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
ggtakec@gmail.com 2013-11-19 01:48:53 +00:00
parent 8acbaf7199
commit 74db6748dd
2 changed files with 6 additions and 1 deletions

View File

@ -3091,6 +3091,9 @@ int S3fsMultiCurl::MultiRead(void)
// as possibly in multipart
DPRN("failed a request(%ld: %s)", responseCode, s3fscurl->url.c_str());
isRetry = true;
}else if(404 == responseCode){
// not found
DPRN("failed a request(%ld: %s)", responseCode, s3fscurl->url.c_str());
}else if(500 == responseCode){
// case of all other result, do retry.(11/13/2013)
// because it was found that s3fs got 500 error from S3, but could success
@ -3098,7 +3101,9 @@ int S3fsMultiCurl::MultiRead(void)
DPRN("failed a request(%ld: %s)", responseCode, s3fscurl->url.c_str());
isRetry = true;
}else{
// Retry in other case.
DPRN("failed a request(%ld: %s)", responseCode, s3fscurl->url.c_str());
isRetry = true;
}
}else{
DPRN("failed a request(Unknown respons code: %s)", s3fscurl->url.c_str());

View File

@ -1,4 +1,4 @@
#ifndef FD_CACHE_H_
#ifndef FD_CACHE_H_
#define FD_CACHE_H_
//------------------------------------------------