commit | ea66a1b3277367ede7454527ba0fac195ed03989 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Mon Nov 13 14:21:18 2023 -0800 |
committer | Yu Shan <shanyu@google.com> | Mon Nov 13 14:22:39 2023 -0800 |
tree | 1b1098e05424c8116aca805c269b6a3d59a79b3e | |
parent | 57528c13fbc8a0b3a9a2ac463bc8ca87263246cf [diff] |
Guard update timestamp logic with lock. Guard the logic to update property value timestamp with lock so that they will not overlap. Otherwise, it is possible that another op will update the timestamp to a newer value, which causes this op to fail the timestamp freshness check. Test: atest --iterations 10 FakeVehicleHardwareTest#testSubscribe_enableVUR Bug: 308552957 Change-Id: I8f7a6356ba65e4470e851e59c20bb1f678c2d467