From: Adam Dickmeiss Date: Thu, 1 Feb 1996 20:48:15 +0000 (+0000) Subject: The total size of records are always checked in rec_cache_insert to X-Git-Tag: ZEBRA.1.0~556 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=740306b2fbf734d67ab9cd99c11568c576c3c32b The total size of records are always checked in rec_cache_insert to reduce memory usage. --- 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;