changeset 7091:5192f6a4cbb8 streaming

rename DataSourceReader::GetCacheCapacity() as GetCacheSize()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Aug 2026 10:40:58 +0000
parents 7dd351a03668
children 8bdb4ff3b484
files OrthancFramework/Sources/DataSource/DataSourceReader.cpp OrthancFramework/Sources/DataSource/DataSourceReader.h OrthancFramework/Sources/DataSource/StorageAreaDataSource.cpp OrthancServer/Sources/ServerContext.cpp
diffstat 4 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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<SharedObjectCache> lock(cache_);
 
--- 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 */);
--- 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)
--- 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());
 
     {