From f31d77969085f549cedbeec70367afdcf6e02393 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 8 May 2019 20:23:17 +0100 Subject: [PATCH] lib: mmap the summary to reduce RSS in clients Closes: #1855 Closes: #1856 Approved by: cgwalters --- src/libostree/ostree-repo-pull.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index 48935523..7ae992ad 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -2868,7 +2868,7 @@ _ostree_repo_load_cache_summary_if_same_sig (OstreeRepo *self, if (prev_fd < 0) return TRUE; /* Note early return */ - g_autoptr(GBytes) old_sig_contents = glnx_fd_readall_bytes (prev_fd, cancellable, error); + g_autoptr(GBytes) old_sig_contents = ot_fd_readall_or_mmap (prev_fd, 0, error); if (!old_sig_contents) return FALSE;