# HG changeset patch # User Sebastien Jodogne # Date 1786617658 0 # Node ID 5192f6a4cbb8ab671cab007328b2d976a1121f0e # Parent 7dd351a03668c8cda6aa02aefd9b134c1a7e6153 rename DataSourceReader::GetCacheCapacity() as GetCacheSize() diff -r 7dd351a03668 -r 5192f6a4cbb8 OrthancFramework/Sources/DataSource/DataSourceReader.cpp --- a/OrthancFramework/Sources/DataSource/DataSourceReader.cpp Thu Aug 13 10:21:54 2026 +0000 +++ b/OrthancFramework/Sources/DataSource/DataSourceReader.cpp Thu Aug 13 10:40:58 2026 +0000 @@ -368,7 +368,7 @@ } - size_t DataSourceReader::GetCacheCapacity() const + size_t DataSourceReader::GetCacheSize() const { boost::shared_ptr lock(cache_); diff -r 7dd351a03668 -r 5192f6a4cbb8 OrthancFramework/Sources/DataSource/DataSourceReader.h --- a/OrthancFramework/Sources/DataSource/DataSourceReader.h Thu Aug 13 10:21:54 2026 +0000 +++ b/OrthancFramework/Sources/DataSource/DataSourceReader.h Thu Aug 13 10:40:58 2026 +0000 @@ -135,7 +135,7 @@ uint64_t& tasksCurrentMemory, unsigned int& tasksReservations) const; - size_t GetCacheCapacity() const; + size_t GetCacheSize() const; void StoreIntoCache(const std::string& key, IDynamicObject* value /* takes ownership */); diff -r 7dd351a03668 -r 5192f6a4cbb8 OrthancFramework/Sources/DataSource/StorageAreaDataSource.cpp --- a/OrthancFramework/Sources/DataSource/StorageAreaDataSource.cpp Thu Aug 13 10:21:54 2026 +0000 +++ b/OrthancFramework/Sources/DataSource/StorageAreaDataSource.cpp Thu Aug 13 10:40:58 2026 +0000 @@ -612,7 +612,7 @@ throw OrthancException(ErrorCode_ParameterOutOfRange); } - const size_t capacity = reader.GetCacheCapacity(); + const size_t capacity = reader.GetCacheSize(); if (capacity != 0 && size <= capacity) diff -r 7dd351a03668 -r 5192f6a4cbb8 OrthancServer/Sources/ServerContext.cpp --- a/OrthancServer/Sources/ServerContext.cpp Thu Aug 13 10:21:54 2026 +0000 +++ b/OrthancServer/Sources/ServerContext.cpp Thu Aug 13 10:40:58 2026 +0000 @@ -70,7 +70,7 @@ #endif -// Symbolic name for configuration options +// Symbolic name for performance-related configuration options static const char* const ORTHANC_CONFIG_STORAGE_LOADER_THREADS_COUNT = "StorageLoaderThreadsCount"; static const char* const ORTHANC_CONFIG_STORAGE_MEMORY_CAPACITY = "StorageMemoryCapacity"; static const char* const ORTHANC_CONFIG_MAXIMUM_STORAGE_CACHE_SIZE = "MaximumStorageCacheSize"; @@ -2473,13 +2473,13 @@ { target = Json::objectValue; - target[ORTHANC_CONFIG_MAXIMUM_STORAGE_CACHE_SIZE] = BytesToMegabytes(storageAreaReader_->GetCacheCapacity()); + target[ORTHANC_CONFIG_MAXIMUM_STORAGE_CACHE_SIZE] = BytesToMegabytes(storageAreaReader_->GetCacheSize()); target[ORTHANC_CONFIG_STORAGE_MEMORY_CAPACITY] = BytesToMegabytes(storageAreaReader_->GetCapacity()); - target[ORTHANC_CONFIG_DICOM_PARSER_CACHE_SIZE] = BytesToMegabytes(dicomReader_->GetCacheCapacity()); + target[ORTHANC_CONFIG_DICOM_PARSER_CACHE_SIZE] = BytesToMegabytes(dicomReader_->GetCacheSize()); target[ORTHANC_CONFIG_DICOM_PARSER_MEMORY_CAPACITY] = BytesToMegabytes(dicomReader_->GetCapacity()); - target[ORTHANC_CONFIG_TRANSCODER_CACHE_SIZE] = BytesToMegabytes(transcoderReader_->GetCacheCapacity()); + target[ORTHANC_CONFIG_TRANSCODER_CACHE_SIZE] = BytesToMegabytes(transcoderReader_->GetCacheSize()); target[ORTHANC_CONFIG_TRANSCODER_MEMORY_CAPACITY] = BytesToMegabytes(transcoderReader_->GetCapacity()); {