[PATCHv1 0/6] Fix bug in large transactions
- From
Stefan Beller <sbeller@google.com>
- Date
- Jan 21, 2015, 23:23 UTC
- Message-ID
- <1421882625-916-1-git-send-email-sbeller@google.com>
(reported as: git update-ref --stdin : too many open files, 2014-12-20)
First a test case is introduced to demonstrate the failure, the patches 2-6 are little refactoring and the last patch fixes the bug and also marks the bugs as resolved in the test suite.
Unfortunately this applies on top of origin/next.
Any feedback would be welcome!
Thanks, Stefan
Stefan Beller (6): update-ref: Test handling large transactions properly refs.c: remove lock_fd from struct ref_lock refs.c: replace write_str_in_full by write_in_full refs.c: Have a write_in_full_to_lock_file wrapping write_in_full refs.c: write to a lock file only once refs.c: enable large transactions
refs.c | 41 +++++++++++++++++++++++++++++------------ t/t1400-update-ref.sh | 28 ++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 12 deletions(-)
-- 2.2.1.62.g3f15098