Re: Few questions



On Thu, Aug 28, 2014, at 01:54 PM, Jeff Ortel wrote:

1. Is it safe for 2+ processes to perform 'ostree pull --mirror' on the 
same repo, remote and branch concurrently?

The same branch even?  Why would you want to do that?  Are you
trying to increase speed?

In general, concurrency on an OSTree repo is not yet strongly defined;
however, you can rely on commits and pulls of different branches being
safe.

2. If I add more than 1 remote to a repository and do 'ostree pull 
--mirror', are the hashs in refs/heads/.. unique?  Are objects stored in 
objects/ unique?  Are the hashs unique in general when multiple remotes 
are added?

The hashes in refs/heads are not necessarily unique - it's quite
possible to have the same repository content (i.e. commit objects)
in multiple locations. That happens very often with git.

The data in objects/ though is unique - it's a content addressed
store.  



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]