pipeline: opt out of copy-on-write for objects

When committing an object to the store, clone it if the current
stage is not the latests stage, i.e. `todo` has still entries.
This is the second step of the removal of copy-on-write support
in `Object`.
This commit is contained in:
Christian Kellner 2022-08-19 18:28:13 +02:00
parent daa2e1c3bb
commit 3e8d2c21dc

View file

@ -359,7 +359,7 @@ class Pipeline:
tree.id = stage.id
if stage.checkpoint:
object_store.commit(tree, stage.id)
object_store.commit(tree, stage.id, clone=bool(todo))
return results