git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 16:12 UTC

Re: [PATCH 2/2] object-file: flush transaction packfile before migrating objects

From
Justin Tobler <jltobler@gmail.com>
Date
Sep 15, 2026, 08:59 UTC
Message-ID
<aqkHyXWO4tRwYemS@jtobler--20250820-SHC54>
In-Reply-To
<CAOLa=ZRCyowPgMABwsQBYTbW1cEf8PBBSszOEYQ4TKwLVKQfFA@mail.gmail.com>
On 26/09/15 12:46AM, Karthik Nayak wrote:
Show 9 quoted lines
>Justin Tobler <jltobler@gmail.com> writes:
>> +test_expect_success 'add large file with loose object in batch fsync' '
>> +	test_when_finished "rm -rf batch" &&
>> +	git init batch &&
>> +
>> +	git -C batch config core.bigFileThreshold 5 &&
>
>Nit: we have `test_config` which automatically unsets after the test.
>Perhaps not really needed here, as we drop 'batch' anyways.

Ya, since we are deleting the repo here as part of this test, I don't think there is much need to cleanup the config right before deleting. I'll leave it as-is.

Show 13 quoted lines
>> +	echo foo >batch/1-small &&
>> +	echo foobar >batch/2-large &&
>> +
>> +	git -C batch -c core.fsync=loose-object -c core.fsyncMethod=batch \
>> +		add 1-small 2-large &&
>> +
>> +	# Neither object may be left behind in a temporary location.
>> +	git -C batch cat-file -e :1-small &&
>> +	git -C batch cat-file -e :2-large
>> +'
>>
>
>Looks good.

Thanks for the review, -Justin

Previous: Justin ToblerNext: Patrick Steinhardt
Message 7 of 18 in “object-file: fix packfile flush during transaction commit”
  1. 0/2 object-file: fix packfile flush during transaction commitJustin Tobler, Sep 13, 2026
  2. 1/2 object-file: lift ODB reprepare out of packfile flushJustin Tobler, Sep 13, 2026
  3. 2/2 object-file: flush transaction packfile before migrating objectsJustin Tobler, Sep 13, 2026
  4. Karthik NayakSep 15, 2026
  5. Karthik NayakSep 15, 2026
  6. Justin ToblerSep 15, 2026
  7. Justin ToblerSep 15, 2026
  8. Patrick SteinhardtSep 23, 2026
  9. Patrick SteinhardtSep 23, 2026
  10. Justin ToblerSep 23, 2026
  11. Justin ToblerSep 23, 2026
  12. 0/2 object-file: fix packfile flush during transaction commitJustin Tobler, Sep 23, 2026
  13. 1/2 object-file: lift ODB reprepare out of packfile flushJustin Tobler, Sep 23, 2026
  14. 2/2 object-file: flush transaction packfile before migrating objectsJustin Tobler, Sep 23, 2026
  15. Patrick SteinhardtSep 24, 2026
  16. Patrick SteinhardtSep 24, 2026
  17. Patrick SteinhardtSep 24, 2026
  18. Patrick SteinhardtSep 24, 2026

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.