remove redundant lock
This commit is contained in:
parent
d387b4e243
commit
0179d72296
1 changed files with 0 additions and 4 deletions
|
|
@ -436,10 +436,6 @@ class Session(object):
|
|||
'exclusive = TRUE'],
|
||||
values={'user_id': user_id}, opts={'rowlock': True})
|
||||
excl_id = query.singleValue(strict=False)
|
||||
# get lock for our session
|
||||
query = QueryProcessor(tables=['sessions'], clauses=['id=%(sesions_id)s'],
|
||||
values={'session_id': session_id}, opts={'rowlock': True})
|
||||
query.execute()
|
||||
if excl_id:
|
||||
if force:
|
||||
# close the previous exclusive sessions and try again
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue