From e0e1711f2c9aa35fe4a21c4caceb4c8a94b620fc Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sat, 14 Dec 2024 07:37:04 +0000 Subject: [PATCH] Fixed a bug in check_service_req_threadworker --- src/s3fs_threadreqs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/s3fs_threadreqs.cpp b/src/s3fs_threadreqs.cpp index fc8affbc8..56a4a9feb 100644 --- a/src/s3fs_threadreqs.cpp +++ b/src/s3fs_threadreqs.cpp @@ -282,10 +282,10 @@ void* check_service_req_threadworker(S3fsCurl& s3fscurl, void* arg) s3fscurl.SetUseAhbe(false); - if(0 == (pthparam->result = s3fscurl.CheckBucket(pthparam->path.c_str(), pthparam->support_compat_dir, pthparam->forceNoSSE))){ - *(pthparam->presponseCode) = s3fscurl.GetLastResponseCode(); - *(pthparam->presponseBody) = s3fscurl.GetBodyData(); - } + pthparam->result = s3fscurl.CheckBucket(pthparam->path.c_str(), pthparam->support_compat_dir, pthparam->forceNoSSE); + *(pthparam->presponseCode) = s3fscurl.GetLastResponseCode(); + *(pthparam->presponseBody) = s3fscurl.GetBodyData(); + return reinterpret_cast(pthparam->result); }