comparison OrthancServer/Sources/main.cpp @ 4810:7afbb54bd028

merge storage-cache
author Alain Mazy <am@osimis.io>
date Tue, 23 Nov 2021 09:22:11 +0100
parents 94616af363ec 434843934307
children 70d2a97ca8cb 7053502fbf97
comparison
equal deleted inserted replaced
4809:2ca4213fb50a 4810:7afbb54bd028
1523 } 1523 }
1524 catch (...) 1524 catch (...)
1525 { 1525 {
1526 context.GetIndex().SetMaximumStorageSize(0); 1526 context.GetIndex().SetMaximumStorageSize(0);
1527 } 1527 }
1528
1529 try
1530 {
1531 uint64_t size = lock.GetConfiguration().GetUnsignedIntegerParameter("MaximumStorageCacheSize", 128);
1532 context.SetMaximumStorageCacheSize(size * 1024 * 1024);
1533 }
1534 catch (...)
1535 {
1536 context.SetMaximumStorageCacheSize(128);
1537 }
1528 } 1538 }
1529 1539
1530 { 1540 {
1531 ServerContextConfigurator configurator(context, plugins); // This calls "OrthancConfiguration::SetServerIndex()" 1541 ServerContextConfigurator configurator(context, plugins); // This calls "OrthancConfiguration::SetServerIndex()"
1532 1542