Make the commit queue task popping a little more clear.
This commit is contained in:
parent
e7c90faf79
commit
bcd13b9ae4
1 changed files with 2 additions and 1 deletions
|
@ -694,8 +694,9 @@ class PDBSQLMixin:
|
|||
self.log.debug('Committing - %s.', message)
|
||||
|
||||
while len(self.on_commit_queue) > 0:
|
||||
task = self.on_commit_queue.pop()
|
||||
task = self.on_commit_queue.pop(-1)
|
||||
if isinstance(task, str):
|
||||
# savepoints.
|
||||
continue
|
||||
args = task.get('args', [])
|
||||
kwargs = task.get('kwargs', {})
|
||||
|
|
Loading…
Reference in a new issue