Skip to content

Commit

Permalink
Unlock editing contexts disposed by the ERXRouteController
Browse files Browse the repository at this point in the history
The ERXRouteController disposes the editing context at the end of the request handling. If the editing context is autoLocked during the request, at least one lock will remain open at disposal time (because of the coalesceAutoLocks property). This change unlocks the editing context before disposing it, avoiding inaccurate warnings when the tracing open locks option is enabled.
  • Loading branch information
hprange committed Jun 24, 2014
1 parent d8657b8 commit 7c48a8d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,7 @@ public <T extends ERXRouteController> T controller(Class<T> controllerClass) {
*/
public void dispose() {
if (_shouldDisposeEditingContext && _editingContext != null) {
ERXEC.unlockAllContextsForCurrentThread();
_editingContext.dispose();
_editingContext = null;
}
Expand Down

0 comments on commit 7c48a8d

Please sign in to comment.