Re: Alternates and push

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Hudec <bulb@...>
Cc: Theodore Tso <tytso@...>, Jon Smirl <jonsmirl@...>, Git Mailing List <git@...>
Date: Sunday, September 7, 2008 - 2:56 pm

Jan Hudec <bulb@ucw.cz> writes:


Because your second step is *BROKEN*.

Think of a case where an earlier commit walker started fetching into that
"server" end, which got newer commits and their associated objects first
and then older ones, and then got killed before reaching to the objects it
already had.  In such a case, the commit walker will *not* update the refs
on the server end (and for a very good reason).

After that, the server end would have:

 * refs that point at some older commits, all objects from whom are
   guaranteed to be in the repository (that's the "ref" guarantee);

 * newer commits and their objects, but if you follow them you will hit
   some objects that are *NOT* in the repository.

Now imagine starting your broken procedure to serve clients from such a
repository.  Your second step would cause the server to attempt to pack
the difference from the latter classes of incomplete objects and makes the
pack generation fail.
--
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:
Alternates and push, Jon Smirl, (Sat Sep 6, 8:42 am)
Re: Alternates and push, Theodore Tso, (Sat Sep 6, 12:20 pm)
Re: Alternates and push, Junio C Hamano, (Sat Sep 6, 2:06 pm)
Re: Alternates and push, Theodore Tso, (Sun Sep 7, 7:41 pm)
Re: Alternates and push, Junio C Hamano, (Mon Sep 8, 1:07 am)
Re: Alternates and push, Junio C Hamano, (Mon Sep 8, 2:42 am)
Re: Alternates and push, Daniel Barkalow, (Mon Sep 8, 3:24 am)
Re: Alternates and push, Shawn O. Pearce, (Mon Sep 8, 10:56 am)
Re: Alternates and push, Junio C Hamano, (Sun Sep 7, 8:02 pm)
Re: Alternates and push, Theodore Tso, (Sun Sep 7, 8:41 pm)
Re: Alternates and push, Junio C Hamano, (Sun Sep 7, 10:53 pm)
Re: Alternates and push, Jan Hudec, (Sun Sep 7, 2:49 pm)
Re: Alternates and push, Junio C Hamano, (Sun Sep 7, 2:56 pm)
Re: Alternates and push, Junio C Hamano, (Sun Sep 7, 3:18 pm)
Re: Alternates and push, Jan Hudec, (Mon Sep 8, 1:56 pm)
Re: Alternates and push, Jan Hudec, (Sun Sep 7, 3:17 pm)
Re: Alternates and push, Jon Smirl, (Sat Sep 6, 2:24 pm)
Re: Alternates and push, Shawn O. Pearce, (Sat Sep 6, 3:21 pm)
Re: Alternates and push, Petr Baudis, (Tue Sep 9, 4:35 am)
Re: Alternates and push, Shawn O. Pearce, (Tue Sep 9, 10:57 am)