简单ttl懒删除支持
This commit is contained in:
@@ -30,6 +30,7 @@ typedef int (*msg_handler)(struct conn *conn);
|
||||
static msg_handler kvs_handler;
|
||||
|
||||
extern iouring_ctx_t global_uring_ctx;
|
||||
extern int ttl_delete_drain(int budget);
|
||||
|
||||
int kvs_request(struct conn *c) {
|
||||
return kvs_handler ? kvs_handler(c) : -1;
|
||||
@@ -603,6 +604,8 @@ int reactor_start(unsigned short port, msg_handler handler) {
|
||||
conn_list[connfd].send_callback(connfd);
|
||||
}
|
||||
}
|
||||
|
||||
(void)ttl_delete_drain(8);
|
||||
}
|
||||
|
||||
for (i = 0; i < listen_count; i++) {
|
||||
|
||||
Reference in New Issue
Block a user