9c004e1833
Right now each ostree txn incurs a `syncfs()`; see https://github.com/ostreedev/ostree/issues/1184 And before this patch, we were doing a txn per package import. We can really do better in libostree - we'll fix that, but in the short term let's use a bigger txn for every package. However, the obvious change here of simply hoisting up the txn is that on failure for imports, we'd discard all downloaded packages. We fix that by changing the auto txn API to have a `commit_on_failure` boolean, and use it in cases where we're doing imports. This is prep work for jigdo, where we'll be using the import path all the time. My bigger plan is to do multithreaded imports. Closes: #1116 Approved by: jlebon |
||
---|---|---|
.. | ||
jsonutil.c | ||
postprocess.c | ||
test-basic.sh | ||
test-kargs.c | ||
test-ucontainer.sh | ||
test-utils.c |