summaryrefslogtreecommitdiffstats
path: root/settings.cpp
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-07-24 10:40:59 +0800
committerLei YU <mine260309@gmail.com>2018-09-12 10:45:04 +0800
commit1cd4248d4afa664b94411dd57e7e686f944dfafc (patch)
treeb49f3d0aa6c319b263b1134e329cd4f4ee65d3e6 /settings.cpp
parent89efe6ed27a9df5a8e761073bdadd3fdd3fa5875 (diff)
downloadphosphor-time-manager-1cd4248d4afa664b94411dd57e7e686f944dfafc.tar.gz
phosphor-time-manager-1cd4248d4afa664b94411dd57e7e686f944dfafc.zip
Fix un-initialized time owner/mode in manager
The timeOwner/Mode in Manager class has no init value, and it is initialized with the cached time owner/mode in file system. In most of time it is OK because there is cached time owner/mode. But if the BMC does a factory reset, the cached values are cleaned up, and in next reboot the timeOwner/Mode will not be initialized at all. The fix is to give default time owner/mode, so when BMC comes from factory reset it uses default time settings. Tested: Verify the timeOwner/Mode have correct init values after factory reset. Change-Id: Ib1a8fba4d758f33ed09a7afdc9ed684867fca1c5
Diffstat (limited to 'settings.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud