remove useless FDFSConnectionStat type and global variable
parent
87139983c8
commit
bfa8a1eb4d
|
|
@ -60,5 +60,3 @@ bool g_http_servers_dirty = false;
|
|||
#if defined(DEBUG_FLAG) && defined(OS_LINUX)
|
||||
char g_exe_name[256] = {0};
|
||||
#endif
|
||||
|
||||
FDFSConnectionStat g_connection_stat = {0, 0};
|
||||
|
|
|
|||
|
|
@ -86,8 +86,6 @@ extern bool g_http_servers_dirty;
|
|||
extern char g_exe_name[256];
|
||||
#endif
|
||||
|
||||
extern FDFSConnectionStat g_connection_stat;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ int tracker_service_init()
|
|||
}
|
||||
|
||||
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,
|
||||
sizeof(TrackerHeader), sizeof(TrackerClientInfo));
|
||||
sf_enable_thread_notify(false);
|
||||
|
|
|
|||
|
|
@ -471,10 +471,5 @@ typedef struct {
|
|||
bool if_leader; //if leader
|
||||
} TrackerRunningStatus;
|
||||
|
||||
typedef struct fdfs_connection_stat {
|
||||
volatile int current_count;
|
||||
int max_count;
|
||||
} FDFSConnectionStat;
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue