sapling/cdatapack
Jun Wu cd2f9f4715 cdatapack: do not keep fd open
Once `mmap` succeeded, it's no longer necessary to keep the underlying fd
open. Therefore just close them as an attempt to reduce file descriptors
opened by the process.

Thanks for spectral from Google for pointing out that fd could be closed.

Test Plan:
```
make clean local
rt test-cstore.t test-*pack*.t
```

Differential Revision: https://phab.mercurial-scm.org/D1185
2017-10-18 16:52:58 -07:00
..
cdatapack_dump.c clib: update C/C++ copyright statements to pass lint checks 2017-08-25 16:46:07 -07:00
cdatapack_get.c clib: update C/C++ copyright statements to pass lint checks 2017-08-25 16:46:07 -07:00
cdatapack.c cdatapack: do not keep fd open 2017-10-18 16:52:58 -07:00
cdatapack.h cdatapack: do not keep fd open 2017-10-18 16:52:58 -07:00
Makefile remotefilelog: let content stores support metadata 2017-04-26 19:50:36 -07:00