mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-04 20:07:54 +00:00
Merge pull request #338 from ggtakec/master
Fixed a bug about IAMCRED type could not be retried.
This commit is contained in:
commit
4b40727644
11
src/curl.cpp
11
src/curl.cpp
@ -1456,7 +1456,16 @@ bool S3fsCurl::CreateCurlHandle(bool force)
|
||||
S3FS_PRN_ERR("Failed to create handle.");
|
||||
return false;
|
||||
}
|
||||
type = REQTYPE_UNSET;
|
||||
|
||||
// [NOTE]
|
||||
// If type is REQTYPE_IAMCRED, do not clear type.
|
||||
// Because that type only uses HTTP protocol, then the special
|
||||
// logic in ResetHandle function.
|
||||
//
|
||||
if(type != REQTYPE_IAMCRED){
|
||||
type = REQTYPE_UNSET;
|
||||
}
|
||||
|
||||
ResetHandle();
|
||||
|
||||
pthread_mutex_unlock(&S3fsCurl::curl_handles_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user