diff --git a/storage/storage_dump.c b/storage/storage_dump.c index e04c0ab..c7707d7 100644 --- a/storage/storage_dump.c +++ b/storage/storage_dump.c @@ -32,6 +32,7 @@ static int fdfs_dump_global_vars(char *buff, const int buffSize) char reserved_space_str[32]; char tracker_client_ip_str[256]; char last_storage_ip_str[256]; + char *p; int total_len; int i; @@ -250,14 +251,18 @@ static int fdfs_dump_global_vars(char *buff, const int buffSize) g_path_space_list[i].free_mb); } - total_len += snprintf(buff + total_len, buffSize - total_len, - "\ng_local_host_ip_count=%d\n", g_local_host_ip_count); - for (i=0; iconnections; + fdfs_server_info_to_string(pTrackerServer, ip_str, sizeof(ip_str)); + total_len += snprintf(buff + total_len, buffSize - total_len, "\t%d. tracker server=%s:%d\n", \ (int)(pTrackerServer - g_tracker_servers.servers) + 1, \ - conn->ip_addr, conn->port); + ip_str, pTrackerServer->connections[0].port); } return total_len;