bugfixed: report connections' current_count and max_count correctly
parent
0615ac3867
commit
0376cf8e2c
|
|
@ -366,8 +366,8 @@ static int fdfs_dump_storage_stat(char *buff, const int buffSize)
|
||||||
"last_heart_beat_time=%s\n",
|
"last_heart_beat_time=%s\n",
|
||||||
g_stat_change_count, g_sync_change_count,
|
g_stat_change_count, g_sync_change_count,
|
||||||
free_queue_alloc_connections(),
|
free_queue_alloc_connections(),
|
||||||
g_storage_stat.connection.current_count,
|
SF_G_CONN_CURRENT_COUNT,
|
||||||
g_storage_stat.connection.max_count,
|
SF_G_CONN_MAX_COUNT,
|
||||||
g_storage_stat.total_upload_count,
|
g_storage_stat.total_upload_count,
|
||||||
g_storage_stat.success_upload_count,
|
g_storage_stat.success_upload_count,
|
||||||
g_storage_stat.total_set_meta_count,
|
g_storage_stat.total_set_meta_count,
|
||||||
|
|
|
||||||
|
|
@ -2314,12 +2314,12 @@ static int tracker_heart_beat(ConnectionInfo *pTrackerServer,
|
||||||
pStatBuff = (FDFSStorageStatBuff *)( \
|
pStatBuff = (FDFSStorageStatBuff *)( \
|
||||||
out_buff + sizeof(TrackerHeader));
|
out_buff + sizeof(TrackerHeader));
|
||||||
|
|
||||||
int2buff(free_queue_alloc_connections(), \
|
int2buff(free_queue_alloc_connections(),
|
||||||
pStatBuff->connection.sz_alloc_count);
|
pStatBuff->connection.sz_alloc_count);
|
||||||
int2buff(g_storage_stat.connection.current_count, \
|
int2buff(SF_G_CONN_CURRENT_COUNT,
|
||||||
pStatBuff->connection.sz_current_count);
|
pStatBuff->connection.sz_current_count);
|
||||||
int2buff(g_storage_stat.connection.max_count, \
|
int2buff(SF_G_CONN_MAX_COUNT, pStatBuff->
|
||||||
pStatBuff->connection.sz_max_count);
|
connection.sz_max_count);
|
||||||
|
|
||||||
long2buff(g_storage_stat.total_upload_count, \
|
long2buff(g_storage_stat.total_upload_count, \
|
||||||
pStatBuff->sz_total_upload_count);
|
pStatBuff->sz_total_upload_count);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue