|
@@ -24,9 +24,6 @@
|
|
|
|
|
|
#include <cc/data.h>
|
|
#include <cc/data.h>
|
|
|
|
|
|
-#include <boost/bind.hpp>
|
|
|
|
-#include <boost/scoped_ptr.hpp>
|
|
|
|
-
|
|
|
|
#include <string>
|
|
#include <string>
|
|
|
|
|
|
namespace isc {
|
|
namespace isc {
|
|
@@ -43,13 +40,11 @@ loadZoneIntoTable(ZoneTableSegment& zt_sgmt, const dns::Name& zname,
|
|
"{\"cache-enable\": true,"
|
|
"{\"cache-enable\": true,"
|
|
" \"params\": {\"" + zname.toText() + "\": \"" + zone_file +
|
|
" \"params\": {\"" + zname.toText() + "\": \"" + zone_file +
|
|
"\"}}"), true);
|
|
"\"}}"), true);
|
|
- boost::scoped_ptr<memory::ZoneWriter> writer(
|
|
|
|
- new memory::ZoneWriter(zt_sgmt,
|
|
|
|
- cache_conf.getLoadAction(zclass, zname),
|
|
|
|
- zname, zclass));
|
|
|
|
- writer->load();
|
|
|
|
- writer->install();
|
|
|
|
- writer->cleanup();
|
|
|
|
|
|
+ memory::ZoneWriter writer(zt_sgmt, cache_conf.getLoadAction(zclass, zname),
|
|
|
|
+ zname, zclass);
|
|
|
|
+ writer.load();
|
|
|
|
+ writer.install();
|
|
|
|
+ writer.cleanup();
|
|
}
|
|
}
|
|
|
|
|
|
namespace {
|
|
namespace {
|
|
@@ -76,13 +71,11 @@ void
|
|
loadZoneIntoTable(ZoneTableSegment& zt_sgmt, const dns::Name& zname,
|
|
loadZoneIntoTable(ZoneTableSegment& zt_sgmt, const dns::Name& zname,
|
|
const dns::RRClass& zclass, ZoneIterator& iterator)
|
|
const dns::RRClass& zclass, ZoneIterator& iterator)
|
|
{
|
|
{
|
|
- boost::scoped_ptr<memory::ZoneWriter> writer(
|
|
|
|
- new memory::ZoneWriter(zt_sgmt,
|
|
|
|
- IteratorLoader(zclass, zname, iterator),
|
|
|
|
- zname, zclass));
|
|
|
|
- writer->load();
|
|
|
|
- writer->install();
|
|
|
|
- writer->cleanup();
|
|
|
|
|
|
+ memory::ZoneWriter writer(zt_sgmt, IteratorLoader(zclass, zname, iterator),
|
|
|
|
+ zname, zclass);
|
|
|
|
+ writer.load();
|
|
|
|
+ writer.install();
|
|
|
|
+ writer.cleanup();
|
|
}
|
|
}
|
|
|
|
|
|
} // namespace test
|
|
} // namespace test
|