Some of the issues were reported earlier but I cannot find the corresponding threads anymore and somehow they didn't get read or just ignored... anyways, I think it'd be good to fix them if I don't mix things up
First of all:
Indexed.cpp @ Clean():
Quote
m_uTotalIndexSource = uTotalSource;
m_uTotalIndexKeyword = uTotalKey;
m_uTotalIndexKeyword = uTotalKey;
Is in fact wrong because we also count the (possibly) removed entries... thus, the correct code would be:
Quote
m_uTotalIndexSource = uTotalSource-uRemovedSource;
m_uTotalIndexKeyword = uTotalKey-uRemovedKey;
m_uTotalIndexKeyword = uTotalKey-uRemovedKey;
Indexed.cpp @ AddNotes():
Quote
m_uTotalIndexKeyword++;
Is most probably wrong and should be
Quote
++m_uTotalIndexNotes;
because we are adding NOTES in this function (note that this code is used twice).
Next in Search.cpp @ StorePacket():
I suppose that this:
Quote
// Inc total request answers
m_uAnswers++;
m_uAnswers++;
should be
Quote
// Inc total request answers
++m_uTotalRequestAnswers;
++m_uTotalRequestAnswers;
as the comment supposes... also appears twice...
Regards,
WiZ










Sign In
Register




