Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/IndexPlugin.cpp @ 40:5600949bfb12
preparing for release
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Jul 2018 08:28:02 +0200 |
parents | c0cb5d2cd696 |
children | 4c3f767ead03 |
comparison
equal
deleted
inserted
replaced
39:a9b8375099f6 | 40:5600949bfb12 |
---|---|
21 | 21 |
22 #include "MySQLIndex.h" | 22 #include "MySQLIndex.h" |
23 #include "../../Framework/MySQL/MySQLDatabase.h" | 23 #include "../../Framework/MySQL/MySQLDatabase.h" |
24 #include "../../Framework/Plugins/PluginInitialization.h" | 24 #include "../../Framework/Plugins/PluginInitialization.h" |
25 | 25 |
26 #include <Core/HttpClient.h> | |
26 #include <Core/Logging.h> | 27 #include <Core/Logging.h> |
27 | 28 |
28 static std::auto_ptr<OrthancDatabases::MySQLIndex> backend_; | 29 static std::auto_ptr<OrthancDatabases::MySQLIndex> backend_; |
29 | 30 |
30 | 31 |
34 { | 35 { |
35 if (!OrthancDatabases::InitializePlugin(context, "MySQL", true)) | 36 if (!OrthancDatabases::InitializePlugin(context, "MySQL", true)) |
36 { | 37 { |
37 return -1; | 38 return -1; |
38 } | 39 } |
40 | |
41 Orthanc::HttpClient::GlobalInitialize(); | |
39 | 42 |
40 OrthancPlugins::OrthancConfiguration configuration(context); | 43 OrthancPlugins::OrthancConfiguration configuration(context); |
41 | 44 |
42 if (!configuration.IsSection("MySQL")) | 45 if (!configuration.IsSection("MySQL")) |
43 { | 46 { |
86 { | 89 { |
87 LOG(WARNING) << "MySQL index is finalizing"; | 90 LOG(WARNING) << "MySQL index is finalizing"; |
88 | 91 |
89 backend_.reset(NULL); | 92 backend_.reset(NULL); |
90 OrthancDatabases::MySQLDatabase::GlobalFinalization(); | 93 OrthancDatabases::MySQLDatabase::GlobalFinalization(); |
94 Orthanc::HttpClient::GlobalFinalize(); | |
91 } | 95 } |
92 | 96 |
93 | 97 |
94 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() | 98 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() |
95 { | 99 { |