X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-z-cache.cpp;h=cb2fac0393fa5ced745a7177e0f20994465be1fd;hp=975aee9fad8c186e022ea5244a33f97cda1db570;hb=2c25ce513613784819fcb216c60d1584402e7907;hpb=5554ddf9c4d9670aaaa8f8b9ce6def1dadff3c96 diff --git a/src/yaz-z-cache.cpp b/src/yaz-z-cache.cpp index 975aee9..cb2fac0 100644 --- a/src/yaz-z-cache.cpp +++ b/src/yaz-z-cache.cpp @@ -1,12 +1,13 @@ /* - * Copyright (c) 2002-2003, Index Data. + * Copyright (c) 2002-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-cache.cpp,v 1.7 2003-10-10 17:58:30 adam Exp $ + * $Id: yaz-z-cache.cpp,v 1.9 2004-03-29 22:46:51 adam Exp $ */ #include -#include +#include +#include struct Yaz_RecordCache_Entry { int m_offset; @@ -87,10 +88,7 @@ void Yaz_RecordCache::add (ODR o, Z_NamePlusRecordList *npr, int start, int hits) { if (nmem_total(m_mem) > m_max_size) - { - yaz_log(LOG_LOG, "cache size"); return; - } // Build appropriate compspec for this response Z_RecordComposition *comp = 0; if (hits == -1 && m_presentRequest)