Commit 7c272467 authored by Marius Gedminas's avatar Marius Gedminas

Commit savepoints in a well-defined order

This fixes nondeterministic failures in
doctest_lp485456_setattr_in_setstate_doesnt_cause_multiple_stores
parent d56bddec
...@@ -1159,7 +1159,7 @@ class Connection(ExportImport, object): ...@@ -1159,7 +1159,7 @@ class Connection(ExportImport, object):
self._savepoint_storage = None self._savepoint_storage = None
try: try:
self._log.debug("Committing savepoints of size %s", src.getSize()) self._log.debug("Committing savepoints of size %s", src.getSize())
oids = src.index.keys() oids = sorted(src.index.keys())
# Copy invalidating and creating info from temporary storage: # Copy invalidating and creating info from temporary storage:
self._modified.extend(oids) self._modified.extend(oids)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment