diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-03-01 11:18:38 -0800 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-03-01 11:18:40 -0800 |
commit | 5ba69740a47857fcebd36866e07963ba798269d5 (patch) | |
tree | 676f2501844882633a9b9f14324397cb8a8411c8 /res | |
parent | 80a535d83ea9ed21f443fdc701c743569ae53eec (diff) | |
download | android_packages_providers_DownloadProvider-5ba69740a47857fcebd36866e07963ba798269d5.tar.gz android_packages_providers_DownloadProvider-5ba69740a47857fcebd36866e07963ba798269d5.tar.bz2 android_packages_providers_DownloadProvider-5ba69740a47857fcebd36866e07963ba798269d5.zip |
Fix race conditions around filename claiming.
When multiple downloads are running in parallel, they can end up
claiming the same filename and clobber over each other. This change
introduces locking around filename generation, and touches the
claimed filename so other threads fail the File.exists() check and
keep looking.
Tests to verify.
Bug: 8255596
Change-Id: Ie75ed047c199cf679832c75159056ca036eac18d
Diffstat (limited to 'res')
0 files changed, 0 insertions, 0 deletions