Remove niceness from getUrlFilterNum

This commit is contained in:
Ai Lin Chia
2016-09-23 15:49:55 +02:00
parent 406f44b1dd
commit d6920e93c3
4 changed files with 3 additions and 6 deletions

@ -2190,7 +2190,6 @@ int32_t getUrlFilterNum ( SpiderRequest *sreq,
SpiderReply *srep,
int32_t nowGlobal,
bool isForMsg20,
int32_t niceness,
CollectionRec *cr,
bool isOutlink,
HashTableX *quotaTable,

@ -981,7 +981,6 @@ int32_t getUrlFilterNum ( class SpiderRequest *sreq ,
class SpiderReply *srep,
int32_t nowGlobal,
bool isForMsg20,
int32_t niceness,
class CollectionRec *cr,
bool isOutlink,
HashTableX *quotaTable,

@ -949,7 +949,7 @@ bool SpiderColl::addSpiderRequest ( SpiderRequest *sreq , int64_t nowGlobalMS )
// get ufn/priority,because if filtered we do not want to add to doledb
int32_t ufn ;
// HACK: set isOutlink to true here since we don't know if we have sre
ufn = ::getUrlFilterNum(sreq,NULL,nowGlobalMS,false,MAX_NICENESS,m_cr,
ufn = ::getUrlFilterNum(sreq,NULL,nowGlobalMS,false,m_cr,
true,//isoutlink? HACK!
NULL,// quota table quotatable
-1 ); // langid not valid
@ -2827,7 +2827,6 @@ bool SpiderColl::scanListForWinners ( ) {
srep,
nowGlobal,
false,
MAX_NICENESS,
m_cr,
false, // isOutlink?
// provide the page quota table

@ -11092,7 +11092,7 @@ int32_t *XmlDoc::getUrlFilterNum ( ) {
int32_t ufn = ::getUrlFilterNum ( oldsr,
NULL,//&fakeReply,
spideredTime,false,
m_niceness,cr,
cr,
false, // isOutlink?
NULL,
langIdArg);
@ -16465,7 +16465,7 @@ Msg20Reply *XmlDoc::getMsg20Reply ( ) {
// get it
int32_t ufn;
ufn=::getUrlFilterNum(&sreq,&srep,spideredTime,true,
m_niceness,cr,
cr,
false, // isOutlink?
NULL ,
langIdArg);