throw std::runtime_error("Error looking up key '" + key + "' from CDB database: " + std::to_string(res));
}
- int x=0;
while(cdb_findnext(&cdbf) > 0) {
- x++;
unsigned int vpos = cdb_datapos(&d_cdb);
unsigned int vlen = cdb_datalen(&d_cdb);
std::string val;
Rings rings(numberOfEntries, numberOfShards, lockAttempts, true);
rings.init();
#if defined(DNSDIST_RINGS_WITH_MACADDRESS)
- Rings::Query query({requestor, qname, now, dh, size, qtype, protocol, "", false});
+ Rings::Query query({requestor, qname, now, dh, size, qtype, protocol, dnsdist::MacAddress(), false});
#else
Rings::Query query({requestor, qname, now, dh, size, qtype, protocol});
#endif