Re: Keeping unreachable objects in a separate pack instead of loose?
- From
Nicolas Pitre <nico@fluxnic.net>
- Date
- Jun 12, 2012, 19:09 UTC
- Message-ID
- <alpine.LFD.2.02.1206121507120.23555@xanadu.home>
- In-Reply-To
- <m2fwa0fk0y.fsf@igel.home>
On Tue, 12 Jun 2012, Andreas Schwab wrote:
Show 8 quoted lines
> Jeff King <peff@peff.net> writes: > > > We could close it in both cases by tweaking the mtime of the file > > containing the object when we decide not to write because the object > > already exists. > > Though there is always the window between the existence check and the > mtime update where pruning can hit you.
This is a tiny window compared to 2 weeks.
This could be avoided entirely with:
1. check presence of object X
2. update its mtime
3. check presence of object X again
4. create if doesn't exist
Nicolas