Ticket #1557: query_bench.diff

File query_bench.diff, 1.1 KB (added by jinmei, 8 years ago)
  • src/bin/auth/benchmarks/query_bench.cc

    diff --git a/src/bin/auth/benchmarks/query_bench.cc b/src/bin/auth/benchmarks/query_bench.cc
    index ba2e7b2..a365085 100644
    a b  
    3030#include <dns/question.h>
    3131#include <dns/rrclass.h>
    3232
     33#include <log/logger_support.h>
     34
    3335#include <xfr/xfrout_client.h>
    3436
    3537#include <auth/auth_srv.h>
    using namespace isc; 
    4446using namespace isc::data;
    4547using namespace isc::auth;
    4648using namespace isc::dns;
     49using namespace isc::log;
    4750using namespace isc::util;
    4851using namespace isc::xfr;
    4952using namespace isc::bench;
    main(int argc, char* argv[]) { 
    231234    const char* const datasrc_file = argv[0];
    232235    const char* const query_data_file = argv[1];
    233236
     237    // We disable logging to avoid unwanted noise. (We may eventually want to
     238    // make it more configurable)
     239    initLogger("query-bench", isc::log::NONE);
     240
    234241    DataSrcType datasrc_type = SQLITE3;
    235242    if (strcmp(opt_datasrc_type, "sqlite3") == 0) {
    236243        ;                       // no need to override