diff options
author | Stan Hu <stanhu@gmail.com> | 2018-03-30 01:20:32 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-03-30 01:23:57 -0700 |
commit | cc82abbde0c8994a64183f4d7250966b3d462b66 (patch) | |
tree | 319715a1a85d582e1130d44f8db40b94678cbe6f /lib/api/files.rb | |
parent | 9b76d8512a5491202e5a953950cc815be9536648 (diff) | |
download | gitlab-ce-cc82abbde0c8994a64183f4d7250966b3d462b66.tar.gz |
Free open file descriptors and libgit2 buffers in UpdatePagesServicesh-cleanup-pages-worker
In UpdatePagesService, we were seeing a large number of open pack files in
production. Calling Project#cleanup removes a reference to Rugged::Repository
and forces libgit2 to close file descriptors and free its internal memory
cache.
Relates to https://gitlab.com/gitlab-com/infrastructure/issues/3965#note_65837525
Diffstat (limited to 'lib/api/files.rb')
0 files changed, 0 insertions, 0 deletions