On Fri, 2009-05-29 at 17:26 +0200, Ralph Seichter wrote: > Timo Sirainen wrote: > > > Anyway it's not an error. It just means that all the rest of the > > mailboxes have future timestamps, and expire-tool has finished its work. > > I upgraded to Dovecot 1.1.15, but expire still gives me trouble. I keep > seeing the following error repeatedly now: > > dict: db(secondary, ): unable to allocate space from the buffer cache > dict: sdb.open() failed: Cannot allocate memory
Does the attached patch help? If not, increase the 1024*1024 to a larger value.
diff -r 6e42cd6ae8a7 src/lib-dict/dict-db.c --- a/src/lib-dict/dict-db.c Thu May 28 14:42:21 2009 -0400 +++ b/src/lib-dict/dict-db.c Sun May 31 19:20:39 2009 -0400 @@ -108,6 +108,7 @@ dict->sdb->set_errfile(dict->sdb, stderr); dict->sdb->set_errpfx(dict->sdb, p_strdup_printf(dict->pool, "db(secondary, %s)", username)); + dict->sdb->set_cachesize(dict->sdb, 0, 1024*1024, 1); if ((ret = dict->pdb->open(dict->pdb, dict->tid, uri, NULL, DB_BTREE, DB_CREATE, 0)) != 0) {
signature.asc
Description: This is a digitally signed message part