try to fix strange unknown tagid core

This commit is contained in:
Matt Wells 2015-03-20 14:20:40 -07:00
parent 7343c40e98
commit 62bbede498

@ -4874,6 +4874,12 @@ bool isTagTypeUnique ( int32_t tt ) {
if ( ! s_initialized ) g_tagdb.setHashTable();
// look up in hash table
TagDesc *td = *(TagDesc **)s_ht.getValue ( &tt );
// do not core for now
if ( ! td ) {
log("tagdb: got unknown tag type %"INT32" assuming "
"unique",tt);
return true;
}
// if none, that is crazy
if ( ! td ) { char *xx=NULL;*xx=0; }
// return
@ -4888,7 +4894,13 @@ bool isTagTypeIndexable ( int32_t tt ) {
if ( ! s_initialized ) g_tagdb.setHashTable();
// look up in hash table
TagDesc *td = *(TagDesc **)s_ht.getValue ( &tt );
// if none, that is crazy
// do not core for now
if ( ! td ) {
log("tagdb: got unknown tag type %"INT32" assuming "
"not indexable",tt);
return false;
}
// if none, that is crazy MDW coring here:
if ( ! td ) { char *xx=NULL;*xx=0; }
// return false if we should not index it
if ( td->m_flags & TDF_NOINDEX ) return false;