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

Re: [PATCH v2] reftable: write correct max_update_index to header

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 23, 2025, 18:11 UTC
Message-ID
<xmqqbjvxs8me.fsf@gitster.g>
In-Reply-To
<20250123135613.748916-1-karthik.188@gmail.com>
Karthik Nayak <karthik.188@gmail.com> writes:
> While this patch was merged to next, Dscho reported that it was flaky
> on macos pipeline. On further investigation I found this was easily
> reproducible when the leak sanitizer was turned on and the reftable
> tests were run. The fix was simply to add the missing 0 initialization.

If it is already _in_ 'next', please turn it into a relative patch on top of it, instead of replacing it.

That will give you an opportunity to describe the breakage in the original version, which everybody missed until it hit 'next'. And you can also credit the folks who reported the breakage, and describe the fix.

The reason we do not revert out of 'next' lightly is because the changes we merge to 'next' are supposed to be reviewed well enough, which means that any bug we discover later is likely to have been caused by mistakes any of us may repeat in the future, and it is worth documenting in our history.

It is quite a different review philosophy if you compare the rules we use for patches that haven't hit 'next'. These uncooked patches may have mistrakes that reviewers can easily spot and get corrected, and these easy ones are not worth documenting as much.

> The patch is based on Maint f93ff170b9 (Git 2.48.1, 2025-01-13). 
Thanks.
Previous: Karthik NayakNext: Junio C Hamano
Message 13 of 21 in “Bug in 2.48 with `git refs migrate`”
  1. brian m. carlsonJan 13, 2025
  2. Patrick SteinhardtJan 13, 2025
  3. Karthik NayakJan 15, 2025
  4. Junio C HamanoJan 15, 2025
  5. Karthik NayakJan 16, 2025
  6. brian m. carlsonJan 16, 2025
  7. Karthik NayakJan 16, 2025
  8. brian m. carlsonJan 16, 2025
  9. Junio C HamanoJan 17, 2025
  10. Karthik NayakJan 17, 2025
  11. Karthik NayakJan 17, 2025
  12. reftable: write correct max_update_index to headerKarthik Nayak, Jan 23, 2025
  13. Junio C HamanoJan 23, 2025
  14. Junio C HamanoJan 23, 2025
  15. refs: fix uninitialized memory access of `max_index`Karthik Nayak, Jan 24, 2025
  16. Patrick SteinhardtJan 24, 2025
  17. Karthik NayakJan 24, 2025
  18. Patrick SteinhardtJan 27, 2025
  19. Junio C HamanoJan 27, 2025
  20. Karthik NayakJan 24, 2025
  21. Junio C HamanoJan 24, 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.