Re: fetching packs and storing them as packs
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Oct 28, 2006, 03:42 UTC
- Message-ID
- <20061028034206.GA14044@spearce.org>
- In-Reply-To
- <7v3b99e87c.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
> Linus Torvalds <torvalds@osdl.org> writes:
[snip]
Show 10 quoted lines
> Can we perhaps have reader-writer lock on the filesystem to > pretect the repository? "prune" can also be made into a writer > for that lock and "fetch-pack --keep" would be a reader for the > lock. That reader-writer lock would solve the issue rather > nicely. > > > That said, I think some of the "git repack -d" logic is also unnecessarily > > fragile. > > Noted; will fix.
So a reader-writer lock is preferred over a non-locking solution such as I posted in http://article.gmane.org/gmane.comp.version-control.git/30288 ?
Not to mention that such a solution would also fix the -d issue Linus points out above.