From: Adam Dickmeiss Date: Tue, 9 Sep 2014 09:30:22 +0000 (+0200) Subject: Initialize Libxml2 - for threaded operation MP-571 X-Git-Tag: v1.5.11~3 X-Git-Url: http://git.indexdata.com/?p=metaproxy-moved-to-github.git;a=commitdiff_plain;h=9fcdfa67cc281509e0f11e1f2aba255718a80cbd Initialize Libxml2 - for threaded operation MP-571 --- diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index 62860ad..5d176ae 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -216,6 +216,9 @@ static int sc_main( , test_config ? "test" : "start" ); + xmlInitParser(); + LIBXML_TEST_VERSION + yaz_log_xml_errors(0, YLOG_LOG); xmlDocPtr doc = xmlReadFile(fname, NULL, diff --git a/src/router_flexml.cpp b/src/router_flexml.cpp index e1f723e..54232de 100644 --- a/src/router_flexml.cpp +++ b/src/router_flexml.cpp @@ -431,8 +431,6 @@ mp::RouterFleXML::RouterFleXML(std::string xmlconf, mp::FactoryFilter &factory, bool test_only) : m_p(new Rep) { - LIBXML_TEST_VERSION; - xmlDocPtr doc = xmlParseMemory(xmlconf.c_str(), xmlconf.size()); if (!doc)