Commit 6c63d8d3 authored by Vincent Pelletier's avatar Vincent Pelletier

Restore object append stripped in previous commit, because it's actually...

Restore object append stripped in previous commit, because it's actually needed when one commits a transaction which follows one (or multiple) subtransaction commits.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14049 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c881ff29
......@@ -83,9 +83,13 @@ try:
# Do prepare until number of jars is stable - this could
# create infinite loop
jars_len = -1
objects_len = len(self._objects)
while len(jars) != jars_len:
jars_len = len(jars)
self._commit_prepare(jars, subjars, subtransaction)
if len(self._objects) != objects_len:
objects.extend(self._objects[objects_len:])
objects_len = len(self._objects)
jars = self._get_jars(objects, subtransaction)
# If not subtransaction, then jars will be modified.
self._commit_begin(jars, subjars, subtransaction)
......
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