Mercurial > hg > orthanc-databases
diff MySQL/Plugins/IndexPlugin.cpp @ 201:42990b2dd51b
create IDatabaseBackendOutput only if needed
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Mar 2021 16:51:51 +0100 |
parents | 30b210616f4f |
children | 2089d4071408 |
line wrap: on
line diff
--- a/MySQL/Plugins/IndexPlugin.cpp Thu Mar 18 15:21:17 2021 +0100 +++ b/MySQL/Plugins/IndexPlugin.cpp Thu Mar 18 16:51:51 2021 +0100 @@ -68,7 +68,7 @@ OrthancDatabases::MySQLParameters parameters(mysql, configuration); /* Create the database back-end */ - backend_.reset(new OrthancDatabases::MySQLIndex(parameters)); + backend_.reset(new OrthancDatabases::MySQLIndex(context, parameters)); /* Register the MySQL index into Orthanc */ OrthancPlugins::DatabaseBackendAdapterV2::Register(context, *backend_);