Commits
- Commit:
3d589bee0bbbe812bb91f3b0284fbf2596304132
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow start_pack_privsep_child() to be called from outside lib/object.c
- Commit:
571608344a37fb96f46850a1124415ab68b1a431
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
open temporary files needed for delta application in got_repo_open()
This prepares for callers of got_repo_open() that cannot afford to
open files in /tmp, such as gotwebd. In a follow-up change, we could
ask such callers to pass in the required amount of open temporary files.
One consequence is that got_repo_open() now requires the "cpath" pledge
promise. Add the "cpath" promise to affected callers and remove it once
the repository has been opened.
ok tracey
- Commit:
f18c433aae68e5537cf67eae05c0343e970307ad
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid get_delta_chain_max_size() in dump_delta_chain_to_mem()
- Commit:
6395114c60289f3ac0f28c0fc4b5dfcef8690cdf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid get_delta_chain_max_size() in dump_delta_chain_to_file()
- Commit:
2d9e6abf243a0a1895786fa9002b28d69a0f6fea
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
store deltas in compressed form while packing, both in memory and cache file
This reduces memory and disk space consumption during packing.
with tweaks + memleak on error fix from op@
ok op@
- Commit:
d7b5a0e827bb38e5c8502f0ba8d7838fedaba19b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
inline struct got_object_id in struct got_object_qid
Saves us from doing a malloc/free call for every item on the list.
ok op@
- Commit:
36751b1b2e8389b739a0f7aacf7d8e5371d898bf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove needless header inclusion; lib/pack.c does not need got_opentemp.h
- Commit:
8934ea8b1b31166ea1f3f857e6f51f8dd6a999a2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
factorize imsg_clear calls after imsg_flush failures
imsg_clear frees and closes resources allocated as part of enqueueing
imsgs so it's a no-op after reads.
discussed with and ok stsp@
- Commit:
67fd68496517d3103b130a1085efdd4591bd7416
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
reuse existing deltas when creating pack files
tested by thomas, naddy, and myself
- Commit:
0ee7a4dc0068ae010131e514f6464c5134f0353e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix double-free and double-close issues in error paths of got_packidx_open()
- Commit:
3bfc233445b0e31daeeebe0e0a98bf346af7be03
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix file corruption regression in 'got checkout' caused by commit db696021
got-read-pack must rewind its files temporary files before reusing them.
Problem reported by naddy
ok tracey naddy
- Commit:
3976db154b362a2b110c8dba0c44d1845f9a6e90
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add missing checks for reads beyond the mapped memory area of a pack file
- Commit:
404bde06df84f6c5521c237cd1f57373e69fe5b7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix bogus "object not found" errors when object ID begins with 00
ok thomas_adam
- Commit:
c0df59665de91324eeab1808c6c4e41343f21789
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
wrap overlong lines
- Commit:
e7ae0bafeffce6697bc3b67fda753e5bac995cb6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add O_CLOEXEC (close-on-exec) to openat(2) calls
suggested by millert
ok thomas_adam