Skip to content

Commit

Permalink
Update src/S3FileSystem.cc
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
bbockelm and github-actions[bot] authored May 23, 2024
1 parent e00349d commit c723d27
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/S3FileSystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,12 @@ int S3FileSystem::Stat(const char *path, struct stat *buff, int opts,
std::vector<S3ObjectInfo> objInfo;
std::vector<std::string> commonPrefixes;
std::string ct;
res = listCommand.Results(objInfo, commonPrefixes, ct, errMsg);
if (!res) {
m_log.Log(XrdHTTPServer::Warning, "Stat", "Failed to parse S3 results:", errMsg.c_str());
return -EIO;
}
res = listCommand.Results(objInfo, commonPrefixes, ct, errMsg);
if (!res) {
m_log.Log(XrdHTTPServer::Warning, "Stat",
"Failed to parse S3 results:", errMsg.c_str());
return -EIO;
}

bool foundObj = false;
size_t objSize = 0;
Expand Down

0 comments on commit c723d27

Please sign in to comment.