git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] Flag and skip over packfiles known to be invalid.

From
Junio C Hamano <junkio@cox.net>
Date
Feb 2, 2007, 08:34 UTC
Message-ID
<7virelhsae.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070202080010.GB21094@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
> If we've already looked at a packfile and determined it isn't
> valid/usable as a pack, we shouldn't try to use it again in
> the future either.  This avoids multiple error messages from
> the same packfile.

I haven't looked your patch very closely, but two successive "git-repack -a -d" would produce the packfile under the same name, but with different parameters (--window or --depth), the old .idx and new .pack may not match.

Can this be possible (time flows from top to bottom):
	git-repack -a -d		somebody else
	produces a new .pack/.idx
        mv new .pack to objects/pack
					mmap .idx (old)
					finds .pack does not match
	mv new .idx to objects/pack
	
Is this something we care about?
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 2 of 5 in “Flag and skip over packfiles known to be invalid.”
  1. 2/2 Flag and skip over packfiles known to be invalid.Shawn O. Pearce, Feb 2, 2007
  2. Junio C HamanoFeb 2, 2007
  3. Shawn O. PearceFeb 2, 2007
  4. Junio C HamanoFeb 3, 2007
  5. Shawn O. PearceFeb 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.