mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 19:31:55 +00:00
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>
This commit is contained in:
parent
a5352d353b
commit
7d758760d1
@ -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…
x
Reference in New Issue
Block a user