diff options
author | Dave Santoro <dsantoro@google.com> | 2011-09-27 14:25:22 -0700 |
---|---|---|
committer | Dave Santoro <dsantoro@google.com> | 2011-09-27 14:28:19 -0700 |
commit | c990980ab4beb7b81c3337526f1bdcd5d1a14730 (patch) | |
tree | 34aa66ad78b11c5a190dd0080e322c8f01f55611 /tests | |
parent | e57045a9b0034063e14ea34b6574b0b0f9fc8998 (diff) | |
download | packages_providers_ContactsProvider-c990980ab4beb7b81c3337526f1bdcd5d1a14730.zip packages_providers_ContactsProvider-c990980ab4beb7b81c3337526f1bdcd5d1a14730.tar.gz packages_providers_ContactsProvider-c990980ab4beb7b81c3337526f1bdcd5d1a14730.tar.bz2 |
Fix deadlock opportunity.
The Profile provider was not synchronizing all transactions on the
contacts DB as it needed to. During commit, most transactions were
doing queries on the contacts DB. As a result, a profile op thread
could have a profile lock and then try to get a contact lock, and
contact op threads could have a contact lock and try to get a profile
lock while updating provider status.
Ensuring that all transactions first require a lock on the contacts
DB avoids the deadlock scenario.
Bug 5381085
Change-Id: I832e075ea37f0d650187b8ec067677ccee75a838
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions