MigrationManager: _transaction is a stack; not a queue

Correct the return value of current_transaction that treated the
_transaction field incorrectly as a queue rather than a stack like
everything else.  This completely broke the ability to commit and
rollback child transactions (correctly).  Fortunately, it could only
trigger on a "hint"-hint.

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 6 years ago
parent a5352d353b
commit 7d758760d1
No known key found for this signature in database
GPG Key ID: A65B78DBE67C7AAC

@ -47,7 +47,7 @@ class MigrationManager(object):
@property
def current_transaction(self):
return self._transactions[0] if self._transactions else None
return self._transactions[-1] if self._transactions else None
def compute_groups(self,
item,

Loading…
Cancel
Save