Make the commit queue task popping a little more clear.

This commit is contained in:
voussoir 2020-02-19 16:26:23 -08:00
parent e7c90faf79
commit bcd13b9ae4

View file

@ -694,8 +694,9 @@ class PDBSQLMixin:
self.log.debug('Committing - %s.', message) self.log.debug('Committing - %s.', message)
while len(self.on_commit_queue) > 0: while len(self.on_commit_queue) > 0:
task = self.on_commit_queue.pop() task = self.on_commit_queue.pop(-1)
if isinstance(task, str): if isinstance(task, str):
# savepoints.
continue continue
args = task.get('args', []) args = task.get('args', [])
kwargs = task.get('kwargs', {}) kwargs = task.get('kwargs', {})