diff options
author | Allan McRae <allan@archlinux.org> | 2020-01-19 00:30:54 +0100 |
---|---|---|
committer | Andrew Gregory <andrew@archlinux.org> | 2020-06-18 10:41:48 +0200 |
commit | 7faa79526874c09fc89fb769744d103bc4918e17 (patch) | |
tree | 512ec965840deee95e476ea6be8eed3df26b0a84 /lib/libalpm | |
parent | 0d0a4bd68099596ba17b8c314664484c3819fbf3 (diff) | |
download | pacman-7faa79526874c09fc89fb769744d103bc4918e17.tar.gz pacman-7faa79526874c09fc89fb769744d103bc4918e17.tar.xz |
Increase maximum database size
We previously has the maximum database size as 25MB. This was set in the days
before repos had as many packages as they do now, and before we started
distributing files databases. Increase this limit to 128MB.
Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit 2856a7dea3c0d4584e126b5ca5957e13e23f83d1)
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/be_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index 2c76fe83..db93309e 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -225,8 +225,8 @@ int SYMEXPORT alpm_db_update(int force, alpm_db_t *db) memset(&payload, 0, sizeof(struct dload_payload)); - /* set hard upper limit of 25MiB */ - payload.max_size = 25 * 1024 * 1024; + /* set hard upper limit of 128MiB */ + payload.max_size = 128 * 1024 * 1024; /* print server + filename into a buffer */ len = strlen(server) + strlen(db->treename) + strlen(dbext) + 2; |