mirror of
https://github.com/gigablast/open-source-search-engine.git
synced 2024-10-04 12:17:35 +03:00
temp debug comments
This commit is contained in:
parent
b8d0e95035
commit
5ed19026d9
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user