X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fyaz-z-cache.cpp;h=011ba99d7ce88911727c3acf8d9fce21934e046f;hb=86726b00b052694e65b036c262f5fe9096554175;hp=cb2fac0393fa5ced745a7177e0f20994465be1fd;hpb=2c25ce513613784819fcb216c60d1584402e7907;p=yazpp-moved-to-github.git diff --git a/src/yaz-z-cache.cpp b/src/yaz-z-cache.cpp index cb2fac0..011ba99 100644 --- a/src/yaz-z-cache.cpp +++ b/src/yaz-z-cache.cpp @@ -2,14 +2,16 @@ * Copyright (c) 2002-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-cache.cpp,v 1.9 2004-03-29 22:46:51 adam Exp $ + * $Id: yaz-z-cache.cpp,v 1.12 2005-06-02 06:40:21 adam Exp $ */ #include #include #include -struct Yaz_RecordCache_Entry { +using namespace yazpp_1; + +struct yazpp_1::Yaz_RecordCache_Entry { int m_offset; Z_NamePlusRecord *m_record; Z_RecordComposition *m_comp; @@ -168,7 +170,7 @@ int Yaz_RecordCache::match (Yaz_RecordCache_Entry *entry, 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; @@ -180,7 +182,7 @@ int Yaz_RecordCache::lookup (ODR o, Z_NamePlusRecordList **npr, 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