Added ovlerloads to Spiderdb::makeFirstKey/makeLastKey() so urlHash28 can be specified

This commit is contained in:
Ivan Skytte Jørgensen
2017-09-19 13:59:08 +02:00
parent 561c18b54f
commit c1b2d98a9b

@ -400,10 +400,16 @@ public:
static key128_t makeFirstKey( int32_t firstIp ) {
return makeKey( firstIp, 0LL, false, 0LL, true );
}
static key128_t makeFirstKey( int32_t firstIp, int64_t urlHash48) {
return makeKey(firstIp, urlHash48, false, 0LL, true);
}
static key128_t makeLastKey( int32_t firstIp ) {
return makeKey( firstIp, 0xffffffffffffLL, true, MAX_DOCID, false );
}
static key128_t makeLastKey( int32_t firstIp, int64_t urlHash48) {
return makeKey( firstIp, urlHash48, true, MAX_DOCID, false );
}
// print the spider rec
static int32_t print(const char *srec, SafeBuf *sb = NULL);