# HG changeset patch # User Sebastien Jodogne # Date 1786630264 0 # Node ID 6d624dfcad3e7d01aae76126e482cdcdfade15fc # Parent 63aae28fa10f6deb99b7a3ba3d329fd6eb8c9f7e removed old option "LoaderThreads" and "IndexDirectory" tagged as optional diff -r 63aae28fa10f -r 6d624dfcad3e OrthancServer/Resources/AdvancedConfiguration.json --- a/OrthancServer/Resources/AdvancedConfiguration.json Thu Aug 13 13:18:38 2026 +0000 +++ b/OrthancServer/Resources/AdvancedConfiguration.json Thu Aug 13 14:11:04 2026 +0000 @@ -321,20 +321,6 @@ // Orthanc <= 1.8.1. "MallocArenaMax" : 5, - // Default number of loader threads to use in jobs that read multiple files - // from the storage area when executing some tasks, including: - // - generating archive/media, - // - executing a C-STORE, - // - transmitting resources through Orthanc peering. - // A value of 0 and 1 are equivalent: a single thread is used. - // A value > 1 is meaningful only if the storage is a distributed network storage - // (e.g., object storage plugin). - // (new in Orthanc 1.12.11) - // Note, from 1.10.0 to 1.12.10, a "ZipLoaderThreads" configuration option - // was available only for the ZIP archive/media. It is still available - // for backward compatibility. - "LoaderThreads" : 1, - // Maximum number of DCMTK transcoders that are simultaneously running // at any given time. A value of "0" indicates to use all the // available CPU logical cores. Prior to Orthanc 1.12.6, there was no limit. diff -r 63aae28fa10f -r 6d624dfcad3e OrthancServer/Resources/Configuration.json --- a/OrthancServer/Resources/Configuration.json Thu Aug 13 13:18:38 2026 +0000 +++ b/OrthancServer/Resources/Configuration.json Thu Aug 13 14:11:04 2026 +0000 @@ -18,9 +18,9 @@ "StorageDirectory" : "OrthancStorage", // Path to the directory that holds the SQLite index (if unset, the - // value of StorageDirectory is used). This index could be stored on + // value of "StorageDirectory" is used). This index could be stored on // a RAM-drive or a SSD device for performance reasons. - "IndexDirectory" : "OrthancStorage", + // "IndexDirectory" : "OrthancStorage", // Enable the transparent compression of the DICOM instances "StorageCompression" : false, diff -r 63aae28fa10f -r 6d624dfcad3e OrthancServer/Sources/OrthancConfiguration.h --- a/OrthancServer/Sources/OrthancConfiguration.h Thu Aug 13 13:18:38 2026 +0000 +++ b/OrthancServer/Sources/OrthancConfiguration.h Thu Aug 13 14:11:04 2026 +0000 @@ -56,6 +56,7 @@ #define ORTHANC_CONFIG_CONCURRENT_JOBS "ConcurrentJobs" #define ORTHANC_CONFIG_HTTP_THREADS_COUNT "HttpThreadsCount" #define ORTHANC_CONFIG_DICOM_THREADS_COUNT "DicomThreadsCount" +#define ORTHANC_CONFIG_INDEX_DIRECTORY "IndexDirectory" #define ORTHANC_CONFIG_STORAGE_DIRECTORY "StorageDirectory" diff -r 63aae28fa10f -r 6d624dfcad3e OrthancServer/Sources/OrthancInitialization.cpp --- a/OrthancServer/Sources/OrthancInitialization.cpp Thu Aug 13 13:18:38 2026 +0000 +++ b/OrthancServer/Sources/OrthancInitialization.cpp Thu Aug 13 14:11:04 2026 +0000 @@ -432,14 +432,13 @@ lock.GetConfiguration().GetStringParameter(ORTHANC_CONFIG_STORAGE_DIRECTORY); std::string indexDirectoryStr; - if (!lock.GetConfiguration().LookupStringParameter(indexDirectoryStr, "IndexDirectory")) + if (!lock.GetConfiguration().LookupStringParameter(indexDirectoryStr, ORTHANC_CONFIG_INDEX_DIRECTORY)) { indexDirectoryStr = storageDirectoryStr; } // Open the database - boost::filesystem::path indexDirectory = lock.GetConfiguration().InterpretStringParameterAsPath( - indexDirectoryStr); + boost::filesystem::path indexDirectory = lock.GetConfiguration().InterpretStringParameterAsPath(indexDirectoryStr); LOG(WARNING) << "SQLite index directory: " << SystemToolbox::PathToUtf8(indexDirectory);