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

Re: [PATCH] pack-bitmap.c: gracefully degrade on failure to load MIDX'd pack

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 12, 2023, 21:19 UTC
Message-ID
<xmqqpm608jlm.fsf@gitster.g>
In-Reply-To
<f123b68cb8a277fbf105b1789a84b9405a499b79.1686178854.git.me@ttaylorr.com>
Taylor Blau <me@ttaylorr.com> writes:
> When opening a MIDX bitmap, we the pack-bitmap machinery eagerly calls
I guess s/we // is needed here?
Show 11 quoted lines
> When opening one of these packs fails, the pack-bitmap code will `die()`
> indicating that it can't open one of the packs in the MIDX. This
> indicates that the MIDX is somehow broken with respect to the current
> state of the repository. When this is the case, we indeed cannot make
> use of the MIDX bitmap to speed up reachability traversals.
>
> However, it does not mean that we can't perform reachability traversals
> at all. In other failure modes, that same function calls `warning()` and
> then returns -1, indicating to its caller (`open_bitmap()`) that we
> should either look for a pack bitmap if one is available, or perform
> normal object traversal without using bitmaps at all.
Makes sense.
Previous: Taylor Blau
Message 2 of 2 in “pack-bitmap.c: gracefully degrade on failure to load MIDX'd pack”
  1. pack-bitmap.c: gracefully degrade on failure to load MIDX'd packTaylor Blau, Jun 7, 2023
  2. Junio C HamanoJun 12, 2023

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.