Re: Is the process of generating ostree static-deltas thread-safe?
- From: Colin Walters <walters verbum org>
- To: ostree-list gnome org
- Subject: Re: Is the process of generating ostree static-deltas thread-safe?
- Date: Tue, 14 Aug 2018 16:01:12 -0400
On Mon, Aug 6, 2018, at 4:38 PM, Davis Roman via ostree-list wrote:
Hello,
I'm using the following to generate static-deltas
$ ostree --repo=/var/www/html/ostree-repo static-delta generate
${commit_to} --from=${commit_from} --min-fallback-size=1000 --inline=true
--filename=${static_delta_filename}
however I'm not sure if this command is thread-safe.
I have a use-case where I'll need to run the above command via a web
service and it may be very likely that it'll get called various times
simultaneously.
I figure that the process of generating a static-delta only involves
reading from the ostree repo which would make it safe for concurrent use.
Yep, that's correct; generating deltas is both multi-process and thread safe.
(However, doing a repo prune will race with delta generation; the original
locking PR https://github.com/ostreedev/ostree/pull/1292 did take a lock
there, should be easy to do now)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]