diff PostgreSQL/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/PostgreSQL/Plugins/IndexPlugin.cpp	Thu Mar 18 15:21:17 2021 +0100
+++ b/PostgreSQL/Plugins/IndexPlugin.cpp	Thu Mar 18 16:51:51 2021 +0100
@@ -62,7 +62,7 @@
       OrthancDatabases::PostgreSQLParameters parameters(postgresql);
 
       /* Create the database back-end */
-      backend_.reset(new OrthancDatabases::PostgreSQLIndex(parameters));
+      backend_.reset(new OrthancDatabases::PostgreSQLIndex(context, parameters));
 
       /* Register the PostgreSQL index into Orthanc */
       OrthancPlugins::DatabaseBackendAdapterV2::Register(context, *backend_);