clear sync src id when tracker response ENOENT
parent
4c28748da0
commit
a0c1140e1c
1
HISTORY
1
HISTORY
|
|
@ -6,6 +6,7 @@ Version 5.10 2017-03-29
|
|||
you must upgrade libfastcommon to V1.36 or later
|
||||
* do NOT sync storage server info to tracker leader
|
||||
* adjust parameter store_server when use_trunk_file is true
|
||||
* clear sync src id when tracker response ENOENT
|
||||
|
||||
Version 5.09 2016-12-29
|
||||
* bug fixed: list_all_groups expand buffer auto for so many groups
|
||||
|
|
|
|||
|
|
@ -1819,12 +1819,23 @@ static int tracker_sync_notify(ConnectionInfo *pTrackerServer)
|
|||
}
|
||||
|
||||
if ((result=fdfs_recv_header(pTrackerServer, &in_bytes)) != 0)
|
||||
{
|
||||
logError("file: "__FILE__", line: %d, "
|
||||
"fdfs_recv_header fail, result: %d",
|
||||
__LINE__, result);
|
||||
return result;
|
||||
}
|
||||
{
|
||||
if (result == ENOENT)
|
||||
{
|
||||
logWarning("file: "__FILE__", line: %d, "
|
||||
"clear sync src id: %s",
|
||||
__LINE__, g_sync_src_id);
|
||||
*g_sync_src_id = '\0';
|
||||
storage_write_to_sync_ini_file();
|
||||
}
|
||||
else
|
||||
{
|
||||
logError("file: "__FILE__", line: %d, "
|
||||
"fdfs_recv_header fail, result: %d",
|
||||
__LINE__, result);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
if (in_bytes != 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue