Skip to content

Commit

Permalink
Fix zonal detection
Browse files Browse the repository at this point in the history
  • Loading branch information
durner committed Mar 11, 2024
1 parent 5cc37a7 commit d2ff895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloud/provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Provider::RemoteInfo Provider::getRemoteInfo(const string& fileName) {
}
if (!remoteFile[i].compare("s3://")) {
// Handle s3 one zone express
if (info.bucket.size() > 6 && info.bucket.find("--x-s3", info.bucket.size() - 7)) {
if (info.bucket.size() > 6 && string::npos != info.bucket.find("--x-s3", info.bucket.size() - 7)) {
info.zonal = true;
}
}
Expand Down

0 comments on commit d2ff895

Please sign in to comment.