Commit 3ec1ea8
fix: add serial comparison in DConfigCacheImpl::setValue
1. Add serial comparison condition to setValue() so cache is
updated when serial differs even if value is the same
2. Update two setValue() doc comments to reflect new return
value semantics
Log: Fixed dconfig write failure after serial upgrade
Influence:
1. Test dconfig setValue with same value but different serial
2. Verify cache updates correctly when serial changes
3. Test that setValue returns false only when both value and
serial match
fix: DConfigCacheImpl::setValue增加serial比较条件
1. setValue()方法增加serial比较条件,当serial不一致时
强制更新缓存
2. 更新两处setValue()文档注释,说明返回值的新语义
Log: 修复dconfig serial升级后写入相同值失败的问题
Influence:
1. 测试dconfig在serial不同但值相同时的setValue行为
2. 验证serial变更时缓存是否正确更新
3. 测试setValue仅在值和serial都匹配时返回false1 parent 35a315f commit 3ec1ea8
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
988 | | - | |
| 988 | + | |
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | | - | |
| 1127 | + | |
1128 | 1128 | | |
1129 | 1129 | | |
1130 | 1130 | | |
| |||
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
1490 | | - | |
| 1490 | + | |
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
| |||
0 commit comments