From 6c77cd87808baf82ae319f52b396f88b352dd765 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 fc8affb..56a4a9f 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); }