Thread View: linux.kernel.git
1 messages
1 total messages
Started by Christian Couder
Tue, 27 Oct 2026 12:20
Re: [PATCH v2 2/6] odb/source-files: always load alternates via primary object directory
Author: Christian Couder
Date: Tue, 27 Oct 2026 12:20
Date: Tue, 27 Oct 2026 12:20
31 lines
13006 bytes
13006 bytes
On Fri, Oct 23, 2026 at 2:48 PM Patrick Steinhardt <ps@pks.im> wrote: > > The files source tracks a list of object directories. The head of the Nit (to match 'the "files" source' used below): s/files/"files"/ > list is typically expected to be the primary object directory, whereas > the tail is the list of alternates linked to it. This assumption does > not always hold though, as transactions cause us to prepend another > quarantine object directory to the list. > > This is not much of a problem now, but in a subsequent commit we're > about to re-read "objects/info/alternates" when we hit a missing > objects. s/objects/object/ > So we may start calling `prepare_alternates()` in situations > where the head of the list is _not_ the primary object directory, but if > so we would now try to read alternates from the quarantine directory and > not from the primary object directory. > > Fix this issue by instead using the path of the "files" source both when > reading alternates in `prepare_alternates()` and when deduplicating the > primary object directory in `odb_files_dir_is_usable()`. Yeah, the change looks good to me. Thanks.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads