/*
- * 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.11 2004-12-13 20:50:54 adam Exp $
*/
#include <yaz/log.h>
-#include <yaz++/proxy.h>
+#include <yaz/proto.h>
+#include <yaz++/record-cache.h>
struct Yaz_RecordCache_Entry {
int m_offset;
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)
oid_to_dotstring(entry->m_record->u.databaseRecord->direct_reference, mstr1);
char mstr2[100];
oid_to_dotstring(syntax, mstr2);
- yaz_log(LOG_LOG, "match fail 3 d=%s s=%s", mstr1, mstr2);
+ yaz_log(YLOG_LOG, "match fail 3 d=%s s=%s", mstr1, mstr2);
#endif
return 0;
Z_RecordComposition *comp)
{
int i;
- yaz_log(LOG_DEBUG, "cache lookup start=%d num=%d", start, num);
+ yaz_log(YLOG_DEBUG, "cache lookup start=%d num=%d", start, num);
for (i = 0; i<num; i++)
{