ProcessModeManager::Close() 在关闭 hccp / computer 进程时,未重置 hasSendConfigFile_ 标志,也未清理 pkgHostHashValue_ / pkgDeviceHashValue_ 缓存。会话关闭后这些状态残留在对象中。
ProcessModeManager::Close()
hasSendConfigFile_
pkgHostHashValue_
pkgDeviceHashValue_
src/tsd/tsdclient/src/process_mode_manager.cpp
Close() 应将 hasSendConfigFile_ 复位为 false,并清空 pkgHostHashValue_ / pkgDeviceHashValue_,使下一次启动能正确重新判断并下发配置文件。
Close()
false
代码走查发现,暂无运行期日志。
修复见 PR #3670(cann/runtime)。
/assign
/close
Describe the current behavior / 问题描述
ProcessModeManager::Close()在关闭 hccp / computer 进程时,未重置hasSendConfigFile_标志,也未清理pkgHostHashValue_/pkgDeviceHashValue_缓存。会话关闭后这些状态残留在对象中。Environment / 环境信息
src/tsd/tsdclient/src/process_mode_manager.cppSteps to reproduce the issue / 重现步骤
hasSendConfigFile_置位,pkgHostHashValue_/pkgDeviceHashValue_记录了包哈希)。ProcessModeManager::Close()关闭会话。hasSendConfigFile_与 pkg hash 仍为上一次的残留值。Describe the expected behavior / 预期结果
Close()应将hasSendConfigFile_复位为false,并清空pkgHostHashValue_/pkgDeviceHashValue_,使下一次启动能正确重新判断并下发配置文件。Related log / screenshot / 日志 / 截图
代码走查发现,暂无运行期日志。
Special notes for this issue / 备注
修复见 PR #3670(cann/runtime)。