From f5f17ea6e780bdfb1dce8e90dda76d91c29d7199 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Fri, 30 Dec 2022 17:26:27 +0800 Subject: [PATCH] sf_enable_thread_notify with false --- storage/storage_service.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage/storage_service.c b/storage/storage_service.c index 444796f..eabfed0 100644 --- a/storage/storage_service.c +++ b/storage/storage_service.c @@ -1593,7 +1593,6 @@ static int sock_send_done_callback(struct fast_task_info *pTask, pClientInfo = (StorageClientInfo *)pTask->arg; pClientInfo->total_offset += length; - if (pClientInfo->total_offset >= pClientInfo->total_length) { if (pClientInfo->total_length == sizeof(TrackerHeader) @@ -1653,7 +1652,7 @@ int storage_service_init() NULL, sock_accept_done_callback, storage_set_body_length, sock_send_done_callback, storage_deal_task, task_finish_clean_up, NULL, 1000, sizeof(TrackerHeader), sizeof(StorageClientInfo)); - sf_enable_thread_notify(true); + sf_enable_thread_notify(false); sf_set_remove_from_ready_list(false); return result;