Merge lp:~camptocamp/ocb-server/7.0-registrymanager-rlock-1238560-gbr into lp:ocb-server
Proposed by
Guewen Baconnier @ Camptocamp
Status: | Rejected |
---|---|
Rejected by: | Guewen Baconnier @ Camptocamp |
Proposed branch: | lp:~camptocamp/ocb-server/7.0-registrymanager-rlock-1238560-gbr |
Merge into: | lp:ocb-server |
Diff against target: |
29 lines (+10/-9) 1 file modified
openerp/modules/registry.py (+10/-9) |
To merge this branch: | bzr merge lp:~camptocamp/ocb-server/7.0-registrymanager-rlock-1238560-gbr |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Community Backports | Pending | ||
Review via email: mp+193749@code.launchpad.net |
Commit message
[FIX] missing a threading.RLock in RegistryManager
if no registry exists and several calls to RegistryManager
by several threads, several registries will be created one after the other and only the last
one will be kept in cls.registries
Description of the change
Fixes lp:1238560
Details on the bug report.
To post a comment you must log in.
Unmerged revisions
- 5137. By Guewen Baconnier @ Camptocamp
-
[FIX] missing a threading.RLock in RegistryManager
.get(): if no registry exists and several calls to RegistryManager
.get() are called at the same time
by several threads, several registries will be created one after the other and only the last
one will be kept in cls.registries
The lock seems mandatory to me too.
Is the get() method called frequently enough to warrant a double checked locking pattern in order to improve performance?