diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-31 13:46:30 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-31 13:46:30 +0800 |
commit | 6113d7160492346d01db7b618d676733e6995437 (patch) | |
tree | bc54b4b63cc7005b89bc84beb01e6c5da3f7f90f /mbbsd/emaildb.c | |
parent | 3727016a2521ae1fa3f80296100df3294bbc90ce (diff) | |
download | pttbbs-6113d7160492346d01db7b618d676733e6995437.tar pttbbs-6113d7160492346d01db7b618d676733e6995437.tar.gz pttbbs-6113d7160492346d01db7b618d676733e6995437.tar.bz2 pttbbs-6113d7160492346d01db7b618d676733e6995437.tar.lz pttbbs-6113d7160492346d01db7b618d676733e6995437.tar.xz pttbbs-6113d7160492346d01db7b618d676733e6995437.tar.zst pttbbs-6113d7160492346d01db7b618d676733e6995437.zip |
- emaildb: apply cache reduction
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3894 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/emaildb.c')
-rw-r--r-- | mbbsd/emaildb.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |