From 6113d7160492346d01db7b618d676733e6995437 Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 31 Jan 2008 05:46:30 +0000 Subject: - emaildb: apply cache reduction git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3894 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/emaildb.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mbbsd') diff --git a/mbbsd/emaildb.c b/mbbsd/emaildb.c index 90cd567e..45b634ce 100644 --- a/mbbsd/emaildb.c +++ b/mbbsd/emaildb.c @@ -4,6 +4,10 @@ #define EMAILDB_PATH BBSHOME "/emaildb.db" +#if defined(__GLIBC__) +void __libc_freeres(); +#endif + static int emaildb_open(sqlite3 **Db) { int rc; @@ -96,6 +100,10 @@ end: if (Db != NULL) sqlite3_close(Db); +#if defined(__GLIBC__) + __libc_freeres(); // discovered by wens, to reduce internal cache caused by sqlite. +#endif + return ret; } -- cgit v1.2.3