Commit 822fa315 authored by JINMEI Tatuya's avatar JINMEI Tatuya

[2470] provide RR collator with issue callbacks

parent 2c50eecd
......@@ -193,12 +193,12 @@ masterLoaderWrapper(const char* const filename, const Name& origin,
const RRClass& zone_class, LoadCallback callback)
{
bool load_ok = false; // (we don't use it)
dns::RRCollator collator(boost::bind(callback, _1));
const MasterLoaderCallbacks issue_callbacks =
createMasterLoaderCallbacks(origin, zone_class, &load_ok);
dns::RRCollator collator(boost::bind(callback, _1), issue_callbacks);
try {
dns::MasterLoader(filename, origin, zone_class,
createMasterLoaderCallbacks(origin, zone_class,
&load_ok),
dns::MasterLoader(filename, origin, zone_class, issue_callbacks,
collator.getCallback()).load();
collator.flush();
} catch (const dns::MasterLoaderError& e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment