过滤锁定日志
This commit is contained in:
parent
95f01e66d3
commit
ccd91dc0d6
|
@ -543,9 +543,21 @@ int hg_scanner::set_server_blacklist_lock()
|
|||
//优先从机器设备上进行校验
|
||||
int ret = HGVersion_Islock_(HGVersion_mgr_, snbuffer, &islock);
|
||||
int islock_file = 0;
|
||||
|
||||
ret = get_dev_islock_file(islock_file);
|
||||
if (islock_file && islock )
|
||||
{
|
||||
is_checksum_strat_scan = false;;
|
||||
return SCANNER_ERR_DEVICE_ISLOCK;
|
||||
}
|
||||
if (!islock_file && !islock)
|
||||
{
|
||||
is_checksum_strat_scan = true;
|
||||
return SCANNER_ERR_OK;
|
||||
}
|
||||
|
||||
if (ret != 0) //服务器没有连接到网络
|
||||
{
|
||||
ret = get_dev_islock_file(islock_file);
|
||||
is_checksum_strat_scan = islock_file <= 0 ? true : false; //使用校验码来进行扫描,以后只会使用这种方法进行扫描
|
||||
VLOG_MINI_1(LOG_LEVEL_DEBUG_INFO, "net is 404 , devs list is:%d\n", islock_file);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue