remove useless FDFSConnectionStat type and global variable

use_libserverframe
YuQing 2022-09-14 11:07:30 +08:00
parent 87139983c8
commit bfa8a1eb4d
4 changed files with 1 additions and 10 deletions

View File

@ -60,5 +60,3 @@ bool g_http_servers_dirty = false;
#if defined(DEBUG_FLAG) && defined(OS_LINUX) #if defined(DEBUG_FLAG) && defined(OS_LINUX)
char g_exe_name[256] = {0}; char g_exe_name[256] = {0};
#endif #endif
FDFSConnectionStat g_connection_stat = {0, 0};

View File

@ -86,8 +86,6 @@ extern bool g_http_servers_dirty;
extern char g_exe_name[256]; extern char g_exe_name[256];
#endif #endif
extern FDFSConnectionStat g_connection_stat;
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -94,7 +94,7 @@ int tracker_service_init()
} }
result = sf_service_init("fdfs_trackerd", NULL, NULL, result = sf_service_init("fdfs_trackerd", NULL, NULL,
sock_accept_done_callback, fdfs_set_body_length, sock_accept_done_callback, fdfs_set_body_length, NULL,
tracker_deal_task, task_finish_clean_up, NULL, 1000, tracker_deal_task, task_finish_clean_up, NULL, 1000,
sizeof(TrackerHeader), sizeof(TrackerClientInfo)); sizeof(TrackerHeader), sizeof(TrackerClientInfo));
sf_enable_thread_notify(false); sf_enable_thread_notify(false);

View File

@ -471,10 +471,5 @@ typedef struct {
bool if_leader; //if leader bool if_leader; //if leader
} TrackerRunningStatus; } TrackerRunningStatus;
typedef struct fdfs_connection_stat {
volatile int current_count;
int max_count;
} FDFSConnectionStat;
#endif #endif