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