From 740306b2fbf734d67ab9cd99c11568c576c3c32b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 1 Feb 1996 20:48:15 +0000 Subject: [PATCH] The total size of records are always checked in rec_cache_insert to reduce memory usage. --- index/recindex.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index/recindex.c b/index/recindex.c index 44de12b..ab5e687 100644 --- a/index/recindex.c +++ b/index/recindex.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: recindex.c,v $ - * Revision 1.13 1995-12-11 09:12:49 adam + * Revision 1.14 1996-02-01 20:48:15 adam + * The total size of records are always checked in rec_cache_insert to + * reduce memory usage. + * + * Revision 1.13 1995/12/11 09:12:49 adam * The rec_get function returns NULL if record doesn't exist - will * happen in the server if the result set records have been deleted since * the creation of the set (i.e. the search). @@ -370,7 +374,7 @@ static void rec_cache_insert (Records p, Record rec, enum recordCacheFlag flag) if (p->cache_cur == p->cache_max) rec_cache_flush (p, 1); - else if (p->cache_cur > 2) + else if (p->cache_cur > 0) { int i, j; int used = 0; -- 1.7.10.4