Remove improper assertion use from beagle cache handling code

This commit is contained in:
Jean-Francois Dockes
2012-09-13 09:44:47 +02:00
parent 3dfaa7525b
commit c030a15780
3 changed files with 84 additions and 24 deletions
+3 -1
View File
@@ -204,8 +204,10 @@ bool BeagleQueueIndexer::indexFromCache(const string& udi)
string data;
string hittype;
if (!m_cache || !m_cache->getFromCache(udi, dotdoc, data, &hittype))
if (!m_cache || !m_cache->getFromCache(udi, dotdoc, data, &hittype)) {
LOGERR(("BeagleQueueIndexer::indexFromCache: cache failed\n"));
return false;
}
if (hittype.empty()) {
LOGERR(("BeagleIndexer::index: cc entry has no hit type\n"));