temp debug comments

This commit is contained in:
Matt Wells 2014-03-20 15:33:37 -07:00
parent b8d0e95035
commit 5ed19026d9
2 changed files with 10 additions and 1 deletions

View File

@ -2141,7 +2141,9 @@ bool printResult ( State0 *st, long ix ) {
*end == '}' ) {
// replace trailing } with spidertime}
sb->incrementLength(-1);
sb->safePrintf(",\"docId\":%lli\n", mr->m_docId);
sb->safePrintf(",\"docId\":%lli", mr->m_docId);
// for deduping
//sb->safePrintf(",\"crc\":%lu",mr->m_contentHash32);
// crap, we lose resolution storing as a float
// so fix that shit here...
//float f = mr->m_lastSpidered;

View File

@ -17199,6 +17199,8 @@ long *XmlDoc::getContentHashJson32 ( ) {
JsonItem *ji = jp->getFirstItem();
long totalHash32 = 0;
//logf(LOG_DEBUG,"ch32: url=%s",m_firstUrl.m_url);
for ( ; ji ; ji = ji->m_next ) {
QUICKPOLL(m_niceness);
// skip if not number or string
@ -17275,6 +17277,11 @@ long *XmlDoc::getContentHashJson32 ( ) {
long combined32 = hash32h ( nameHash32 , vh32 );
// accumulate field/val pairs order independently
totalHash32 ^= combined32;
// debug note
//logf(LOG_DEBUG,"ch32: field=%s nh32=%lu vallen=%li",
// ji->m_name,
// nameHash32,
// vlen);
}
m_contentHash32 = totalHash32;