should close connection after fetch binlog

pull/48/head^2
yuqing 2015-08-15 10:32:13 +08:00
parent 41581aae6b
commit f46f8bfb0b
2 changed files with 2 additions and 1 deletions

View File

@ -1117,7 +1117,7 @@ int storage_disk_recovery_start(const int store_path_index)
}
result = storage_do_fetch_binlog(pStorageConn, store_path_index);
tracker_disconnect_server_ex(pStorageConn, result != 0);
tracker_disconnect_server(pStorageConn, true);
if (result != 0)
{
return result;

View File

@ -4268,6 +4268,7 @@ static int storage_server_do_fetch_one_path_binlog( \
if ((result=storage_reader_init(NULL, pReader)) != 0)
{
storage_reader_destroy(pReader);
free(pReader);
return result;
}