Re: fetching packs and storing them as packs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Shawn Pearce
Date: Friday, October 27, 2006 - 1:13 am

Alex Riesen <raa.lkml@gmail.com> wrote:

No, we have never needed them before.  And I think we'd like to
avoid adding them now.

We do have the rule that a pack can only be accessed if its .idx
file exists; therefore we generate a pack and its index, then place
the pack into the object directory, then the index.  That way the
pack is there before the index but another process won't attempt
to read the pack until the index exists.  It also means we should
never put an index into the pack directory before its associated
pack.  :-)

If we are pruneing packs or loose objects after the repack we delete
only after the pack and index are in place.  Running processes
rescan the existing packs once if they look for an object and
cannot find it in the loose objects directory or in the packs it
already knows about; this lets most running processes automatically
recover should a parallel repack delete the loose objects it needs
(as they were just packed).

-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: fetching packs and storing them as packs, Eran Tromer, (Thu Oct 26, 3:09 pm)
Re: fetching packs and storing them as packs, Nicolas Pitre, (Thu Oct 26, 5:50 pm)
Re: fetching packs and storing them as packs, Shawn Pearce, (Thu Oct 26, 6:42 pm)
Re: fetching packs and storing them as packs, Nicolas Pitre, (Thu Oct 26, 7:41 pm)
Re: fetching packs and storing them as packs, Eran Tromer, (Thu Oct 26, 7:42 pm)
Re: fetching packs and storing them as packs, Shawn Pearce, (Thu Oct 26, 8:00 pm)
Re: fetching packs and storing them as packs, Eran Tromer, (Thu Oct 26, 9:03 pm)
Re: fetching packs and storing them as packs, Shawn Pearce, (Thu Oct 26, 9:42 pm)
Re: fetching packs and storing them as packs, Junio C Hamano, (Thu Oct 26, 11:57 pm)
Re: fetching packs and storing them as packs, Alex Riesen, (Fri Oct 27, 12:42 am)
Re: fetching packs and storing them as packs, Shawn Pearce, (Fri Oct 27, 12:52 am)
Re: fetching packs and storing them as packs, Alex Riesen, (Fri Oct 27, 1:08 am)
Re: fetching packs and storing them as packs, Shawn Pearce, (Fri Oct 27, 1:13 am)
Re: fetching packs and storing them as packs, Nicolas Pitre, (Fri Oct 27, 7:27 am)
Re: fetching packs and storing them as packs, Petr Baudis, (Fri Oct 27, 7:38 am)
Re: fetching packs and storing them as packs, J. Bruce Fields, (Fri Oct 27, 7:48 am)
Re: fetching packs and storing them as packs, Petr Baudis, (Fri Oct 27, 8:03 am)
Re: fetching packs and storing them as packs, J. Bruce Fields, (Fri Oct 27, 9:04 am)
Re: fetching packs and storing them as packs, J. Bruce Fields, (Fri Oct 27, 9:05 am)
Re: fetching packs and storing them as packs, Nicolas Pitre, (Fri Oct 27, 10:23 am)
Re: fetching packs and storing them as packs, Junio C Hamano, (Fri Oct 27, 11:56 am)