storage_report_ip_changed ignore result EEXIST
parent
80c9930f22
commit
df2fd2069b
|
|
@ -173,8 +173,9 @@ allow_hosts=*
|
|||
# 1: random, distributted by hash code
|
||||
file_distribute_path_mode=0
|
||||
|
||||
# valid when file_distribute_to_path is set to 0 (round robin),
|
||||
# when the written file count reaches this number, then rotate to next path
|
||||
# valid when file_distribute_to_path is set to 0 (round robin).
|
||||
# when the written file count reaches this number, then rotate to next path.
|
||||
# rotate to the first path (00/00) after the last path (such as FF/FF).
|
||||
# default value is 100
|
||||
file_distribute_rotate_count=100
|
||||
|
||||
|
|
|
|||
|
|
@ -92,10 +92,11 @@ static int storage_report_ip_changed(ConnectionInfo *pTrackerServer)
|
|||
}
|
||||
|
||||
pInBuff = in_buff;
|
||||
result = fdfs_recv_response(pTrackerServer, \
|
||||
result = fdfs_recv_response(pTrackerServer,
|
||||
&pInBuff, 0, &in_bytes);
|
||||
|
||||
if (result == 0 || result == EALREADY || result == ENOENT)
|
||||
if (result == 0 || result == EALREADY || result == ENOENT
|
||||
|| result == EEXIST)
|
||||
{
|
||||
if (result != 0)
|
||||
{
|
||||
|
|
@ -107,11 +108,11 @@ static int storage_report_ip_changed(ConnectionInfo *pTrackerServer)
|
|||
}
|
||||
else
|
||||
{
|
||||
logError("file: "__FILE__", line: %d, " \
|
||||
"tracker server %s:%d, recv data fail or " \
|
||||
"response status != 0, " \
|
||||
"errno: %d, error info: %s", \
|
||||
__LINE__, pTrackerServer->ip_addr, \
|
||||
logError("file: "__FILE__", line: %d, "
|
||||
"tracker server %s:%d, recv data fail or "
|
||||
"response status != 0, "
|
||||
"errno: %d, error info: %s",
|
||||
__LINE__, pTrackerServer->ip_addr,
|
||||
pTrackerServer->port, result, STRERROR(result));
|
||||
return result == EBUSY ? 0 : result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue