commit | f093b5303e955a8c99bc88a734c9c7809b7aca73 | [log] [tgz] |
---|---|---|
author | Varun Shah <varunshah@google.com> | Mon Oct 26 10:57:44 2020 -0700 |
committer | Varun Shah <varunshah@google.com> | Mon Oct 26 10:57:44 2020 -0700 |
tree | 03857c7a60907335280adababd7d2b837fac9403 | |
parent | 3609d63a25c439b0e38569aca210805b47a0cdf5 [diff] |
Add locking around SyncManager accounts handling. The running accounts managed within SyncManager were not protected behind a lock and caused race conditions when adding new accounts. This CL adds a lock around the accounts array to avoid such race conditions. Bug: 165011202 Test: manual (add new account, observe no "account doesn't exist" errors) Test: SyncManagerTest Test: CtsSyncManagerTest Change-Id: I8ce2a6f93a913bb3cd55ca7a1e292414d45834f6