Skip to content

Commit ab19cfe

Browse files
author
Stefania Alborghetti
committed
Revert level-triggered epoll for AIO reads introudced by DB-1720
1 parent bc8dd5a commit ab19cfe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

transport-native-epoll/src/main/java/io/netty/channel/epoll/EpollEventLoop.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ protected EpollEventLoop(EventLoopGroup parent, Executor executor, int maxEvents
107107
if (aio != null && Aio.isAvailable()) {
108108
try {
109109
aioContext = Native.createAIOContext(aio);
110-
Native.epollCtlAdd(epollFd.intValue(), aioContext.getEventFd().intValue(), Native.EPOLLIN);
110+
Native.epollCtlAdd(epollFd.intValue(), aioContext.getEventFd().intValue(),
111+
Native.EPOLLIN | Native.EPOLLET);
111112
logger.info("Created AIO Context with params: {}", aio);
112113
} catch (Throwable e) {
113114
logger.error("Unable to initialize AIO", e);

0 commit comments

Comments
 (0)