From: Peter van Dijk Date: Mon, 16 Feb 2015 12:22:15 +0000 (+0100) Subject: move statbag so static initialisation happens early enough for packetcache; thanks... X-Git-Tag: dnsdist-1.0.0-alpha1~294 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc7d490b6ac24718ce65e03f5bb93c0ad8e90ad9;p=pdns move statbag so static initialisation happens early enough for packetcache; thanks @cmouse for pointers --- diff --git a/pdns/test-nameserver_cc.cc b/pdns/test-nameserver_cc.cc index e24065e70..8417b5532 100644 --- a/pdns/test-nameserver_cc.cc +++ b/pdns/test-nameserver_cc.cc @@ -9,7 +9,6 @@ #include extern vector g_localaddresses; -StatBag S; ArgvMap &arg() { diff --git a/pdns/testrunner.cc b/pdns/testrunner.cc index f27a6c3d1..15a9d43aa 100644 --- a/pdns/testrunner.cc +++ b/pdns/testrunner.cc @@ -3,6 +3,7 @@ #define BOOST_TEST_MODULE unit #include "packetcache.hh" +StatBag S; PacketCache PC; #include