Skip to content

Commit

Permalink
[fix](remote)fix bug for delete s3 dir and list s3 dir (apache#12918)
Browse files Browse the repository at this point in the history
* fix bug for delete s3 dir and list s3 dir
  • Loading branch information
pengxiangyu authored and FreeOnePlus committed Oct 8, 2022
1 parent 5890137 commit 618dedf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions be/src/io/fs/s3_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ S3FileSystem::S3FileSystem(S3Conf s3_conf, ResourceId resource_id)
fmt::format("{}/{}/{}", s3_conf.endpoint, s3_conf.bucket, s3_conf.prefix),
std::move(resource_id), FileSystemType::S3),
_s3_conf(std::move(s3_conf)) {
if (_s3_conf.prefix.size() > 0 && _s3_conf.prefix[0] == '/') {
_s3_conf.prefix = _s3_conf.prefix.substr(1);
}
_executor = Aws::MakeShared<Aws::Utils::Threading::PooledThreadExecutor>(
resource_id.c_str(), config::s3_transfer_executor_pool_size);
}
Expand Down

0 comments on commit 618dedf

Please sign in to comment.