Skip to content

Fix bug in large transactions

Stefan Beller git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6update-ref: Test handling large transactions properlyt/t1400-update-ref.sh+28 -01 reply
2/6refs.c: remove lock_fd from struct ref_lockrefs.c+5 -100 replies
3/6refs.c: replace write_str_in_full by write_in_fullrefs.c+1 -13 replies
4/6refs.c: Have a write_in_full_to_lock_file wrapping write_in_fullrefs.c+11 -41 reply
5/6refs.c: write to a lock file only oncerefs.c+9 -61 reply
6/6refs.c: enable large transactionsrefs.c t/t1400-update-ref.sh+15 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHv1 0/6] Fix bug in large transactions

(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(-)
Signature · 1 line
2.2.1.62.g3f15098