projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d07818c
)
The total size of records are always checked in rec_cache_insert to
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 1 Feb 1996 20:48:15 +0000
(20:48 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 1 Feb 1996 20:48:15 +0000
(20:48 +0000)
reduce memory usage.
index/recindex.c
patch
|
blob
|
history
diff --git
a/index/recindex.c
b/index/recindex.c
index
44de12b
..
ab5e687
100644
(file)
--- a/
index/recindex.c
+++ b/
index/recindex.c
@@
-4,7
+4,11
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: recindex.c,v $
* 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).
* 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);
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;
{
int i, j;
int used = 0;