Skip to content

Commit c490337

Browse files
Juanlu Herrerometa-codesync[bot]
authored andcommitted
Migrate IOUringUtil to use IoUringOptions
Summary: Update thrift/lib/cpp2/server/IOUringUtil.h and .cpp to use the new IoUringOptions type directly instead of IoUringBackend::Options. Reviewed By: dtolnay Differential Revision: D92400204 fbshipit-source-id: 7a9b960d9aba241495920a5a0a73798f1902f944
1 parent e5ce328 commit c490337

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

thrift/lib/cpp2/server/IOUringUtil.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ std::unique_ptr<folly::EventBaseBackendBase> getIOUringEventbaseBackendFunc() {
3131
}
3232
}
3333

34-
folly::IoUringBackend::Options getDefaultIOUringOptions() {
35-
folly::IoUringBackend::Options options;
34+
folly::IoUringOptions getDefaultIOUringOptions() {
35+
folly::IoUringOptions options;
3636
options.setRegisterRingFd(true)
3737
.setInitialProvidedBuffers(2048, 2000)
3838
.setUseRegisteredFds(2048)

thrift/lib/cpp2/server/IOUringUtil.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
#if FOLLY_HAS_LIBURING
2424

2525
#include <folly/executors/IOThreadPoolExecutor.h>
26+
#include <folly/io/async/IoUringOptions.h>
2627

2728
namespace apache::thrift::io_uring_util {
2829

2930
std::unique_ptr<folly::EventBaseBackendBase> getIOUringEventbaseBackendFunc();
3031

31-
folly::IoUringBackend::Options getDefaultIOUringOptions();
32+
folly::IoUringOptions getDefaultIOUringOptions();
3233

3334
std::shared_ptr<folly::IOThreadPoolExecutorBase> getDefaultIOUringExecutor(
3435
bool enableThreadIdCollection = true);

0 commit comments

Comments
 (0)