mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-02-14 16:16:29 +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
@ -1456,7 +1456,16 @@ bool S3fsCurl::CreateCurlHandle(bool force)
|
|||||||
S3FS_PRN_ERR("Failed to create handle.");
|
S3FS_PRN_ERR("Failed to create handle.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// [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;
|
type = REQTYPE_UNSET;
|
||||||
|
}
|
||||||
|
|
||||||
ResetHandle();
|
ResetHandle();
|
||||||
|
|
||||||
pthread_mutex_unlock(&S3fsCurl::curl_handles_lock);
|
pthread_mutex_unlock(&S3fsCurl::curl_handles_lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user