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

Re: [PATCH v4 0/7] refs/reftable: add consistency checks

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 26, 2025, 21:08 UTC
Message-ID
<xmqq1pnsc46y.fsf@gitster.g>
In-Reply-To
<20250926-228-reftable-introduce-consistency-checks-v4-0-c96fd8551c0d@gmail.com>
Karthik Nayak <karthik.188@gmail.com> writes:
Show 5 quoted lines
> Changes in v4:
> - The biggest change is to iterate over the tables in a reftable stack
>   for consistency checks instead of all files inside the REFTABLE_DIR.
>   This avoids all race conditions. Also, since we only check the tables
>   in a stack, it no longer makes sense to check file type.
Nice.
Show 6 quoted lines
> - The discussion about update indices was concluded that tables indices
>   in a stack must be strictly monotonically increasing. While modifying
>   the code to do the same. I realized that we already have this check in
>   'reftable_addition_add()' where we check while adding a new table to
>   the stack: `wr->min_update_index < add->next_update_index`. So I've
>   dropped this patch from the series.

Great. Reading over patches and noticing that it is not needed is the best kind of proofreading ;-)

> - Change parse_names() to accept the output string array as an argument
>   and return an error instead. This makes the flow a little easier to
>   understand.
Wonderful.
Will queue.  Thanks.
Previous: Karthik Nayak
Message 14 of 14 in “refs/reftable: add consistency checks”
  1. 0/7 refs/reftable: add consistency checksKarthik Nayak, Sep 26, 2025
  2. 1/7 refs: remove unused headersKarthik Nayak, Sep 26, 2025
  3. 2/7 refs: move consistency check msg to generic layerKarthik Nayak, Sep 26, 2025
  4. 3/7 reftable: check for trailing newline in 'tables.list'Karthik Nayak, Sep 26, 2025
  5. Patrick SteinhardtOct 2, 2025
  6. Karthik NayakOct 6, 2025
  7. 4/7 Documentation/fsck-msgids: remove duplicate msg idKarthik Nayak, Sep 26, 2025
  8. 5/7 fsck: order 'fsck_msg_type' alphabeticallyKarthik Nayak, Sep 26, 2025
  9. 6/7 reftable: add code to facilitate consistency checksKarthik Nayak, Sep 26, 2025
  10. Patrick SteinhardtOct 2, 2025
  11. 7/7 refs/reftable: add fsck check for checking the table nameKarthik Nayak, Sep 26, 2025
  12. Patrick SteinhardtOct 2, 2025
  13. Karthik NayakOct 6, 2025
  14. Junio C HamanoSep 26, 2025

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.