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>
This commit is contained in:
Allan McRae 2020-01-19 09:30:54 +10:00
parent 2e32d51a26
commit 2856a7dea3

View file

@ -223,8 +223,8 @@ int SYMEXPORT alpm_db_update(int force, alpm_db_t *db)
size_t len; size_t len;
int sig_ret = 0; int sig_ret = 0;
/* set hard upper limit of 25MiB */ /* set hard upper limit of 128MiB */
payload.max_size = 25 * 1024 * 1024; payload.max_size = 128 * 1024 * 1024;
/* print server + filename into a buffer */ /* print server + filename into a buffer */
len = strlen(server) + strlen(db->treename) + strlen(dbext) + 2; len = strlen(server) + strlen(db->treename) + strlen(dbext) + 2;