Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions cloud/src/recycler/recycler_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@

namespace doris::cloud {

extern int reset_s3_rate_limiter(S3RateLimitType type, size_t max_speed, size_t max_burst,
size_t limit);

extern std::tuple<int, std::string_view> convert_ms_code_to_http_code(MetaServiceCode ret);

RecyclerServiceImpl::RecyclerServiceImpl(std::shared_ptr<TxnKv> txn_kv, Recycler* recycler,
Expand Down
4 changes: 4 additions & 0 deletions cloud/src/recycler/recycler_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#pragma once

#include <cpp/s3_rate_limiter.h>
#include <gen_cpp/cloud.pb.h>

#include "meta-service/txn_lazy_committer.h"
Expand Down Expand Up @@ -55,4 +56,7 @@ class RecyclerServiceImpl : public cloud::RecyclerService {
std::shared_ptr<TxnLazyCommitter> txn_lazy_committer_;
};

extern int reset_s3_rate_limiter(S3RateLimitType type, size_t max_speed, size_t max_burst,
size_t limit);

} // namespace doris::cloud
4 changes: 4 additions & 0 deletions cloud/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ add_executable(fdb_injection_test fdb_injection_test.cpp)

add_executable(s3_accessor_test s3_accessor_test.cpp)

add_executable(s3_accessor_client_test s3_accessor_client_test.cpp)

add_executable(s3_accessor_mock_test s3_accessor_mock_test.cpp)

option(ENABLE_HDFS_STORAGE_VAULT "Enable HDFS storage support" ON)
Expand Down Expand Up @@ -125,6 +127,8 @@ target_link_libraries(http_encode_key_test ${TEST_LINK_LIBS})

target_link_libraries(s3_accessor_test ${TEST_LINK_LIBS})

target_link_libraries(s3_accessor_client_test ${TEST_LINK_LIBS})

target_link_libraries(s3_accessor_mock_test ${TEST_LINK_LIBS})

option(ENABLE_HDFS_STORAGE_VAULT "Enable HDFS storage support" ON)
Expand Down
Loading