Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/StoragePlugin.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 "MySQLStorageArea.h" | 22 #include "MySQLStorageArea.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 | 29 |
29 extern "C" | 30 extern "C" |
30 { | 31 { |
32 { | 33 { |
33 if (!OrthancDatabases::InitializePlugin(context, "MySQL", false)) | 34 if (!OrthancDatabases::InitializePlugin(context, "MySQL", false)) |
34 { | 35 { |
35 return -1; | 36 return -1; |
36 } | 37 } |
38 | |
39 Orthanc::HttpClient::GlobalInitialize(); | |
37 | 40 |
38 OrthancPlugins::OrthancConfiguration configuration(context); | 41 OrthancPlugins::OrthancConfiguration configuration(context); |
39 | 42 |
40 if (!configuration.IsSection("MySQL")) | 43 if (!configuration.IsSection("MySQL")) |
41 { | 44 { |
80 { | 83 { |
81 LOG(WARNING) << "MySQL storage area is finalizing"; | 84 LOG(WARNING) << "MySQL storage area is finalizing"; |
82 | 85 |
83 OrthancDatabases::StorageBackend::Finalize(); | 86 OrthancDatabases::StorageBackend::Finalize(); |
84 OrthancDatabases::MySQLDatabase::GlobalFinalization(); | 87 OrthancDatabases::MySQLDatabase::GlobalFinalization(); |
88 Orthanc::HttpClient::GlobalFinalize(); | |
85 } | 89 } |
86 | 90 |
87 | 91 |
88 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() | 92 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() |
89 { | 93 { |