# HG changeset patch # User Sebastien Jodogne # Date 1549652053 -3600 # Node ID 3424a54ca2ee52448369fd249af954d225164e62 # Parent b85d672afcb5cf5382741fb81c7b6e0213f2be9e fix performance warning diff -r b85d672afcb5 -r 3424a54ca2ee Framework/Plugins/OrthancCppDatabasePlugin.h --- a/Framework/Plugins/OrthancCppDatabasePlugin.h Fri Feb 08 18:35:48 2019 +0100 +++ b/Framework/Plugins/OrthancCppDatabasePlugin.h Fri Feb 08 19:54:13 2019 +0100 @@ -1841,13 +1841,13 @@ # endif #endif - if (performanceWarning) + if (performanceWarning) { char info[1024]; sprintf(info, "Performance warning: The database index plugin was compiled " "against an old version of the Orthanc SDK (%d.%d.%d): " - "Consider upgrading to version 1.5.2 of the Orthanc SDK", + "Consider upgrading to version 1.5.4 of the Orthanc SDK", ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); diff -r b85d672afcb5 -r 3424a54ca2ee Framework/Plugins/PluginInitialization.cpp --- a/Framework/Plugins/PluginInitialization.cpp Fri Feb 08 18:35:48 2019 +0100 +++ b/Framework/Plugins/PluginInitialization.cpp Fri Feb 08 19:54:13 2019 +0100 @@ -65,7 +65,7 @@ return false; } - if (OrthancPluginCheckVersionAdvanced(context, 1, 4, 0) == 1) + if (OrthancPluginCheckVersionAdvanced(context, 1, 5, 4) == 1) { ImplicitTransaction::SetErrorOnDoubleExecution(true); isOptimal = true; @@ -111,8 +111,8 @@ int revision = boost::lexical_cast(tokens[2]); isOptimal = (major > 1 || - (major == 1 && minor > 4) || - (major == 1 && minor == 4 && revision >= 0)); + (major == 1 && minor > 5) || + (major == 1 && minor == 5 && revision >= 4)); } } @@ -121,7 +121,7 @@ { LOG(WARNING) << "Performance warning in " << dbms << " index: Your version of Orthanc (" - << context->orthancVersion << ") should be upgraded to 1.5.2 " + << context->orthancVersion << ") should be upgraded to 1.5.4 " << "to benefit from best performance"; }