comparison OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 4602:cfdd1f59ff6f db-changes

fix OrthancCDatabasePlugin.h
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Mar 2021 19:25:27 +0100
parents cc64385593ef
children f75c63aa9de0
comparison
equal deleted inserted replaced
4601:27c07dbf6b4f 4602:cfdd1f59ff6f
2677 { 2677 {
2678 transaction.Recycle(maximumStorageSize_, maximumPatientCount_, 0, ""); 2678 transaction.Recycle(maximumStorageSize_, maximumPatientCount_, 0, "");
2679 } 2679 }
2680 }; 2680 };
2681 2681
2682 Operations operations(maximumStorageSize, maximumPatientCount); 2682 if (maximumStorageSize != 0 ||
2683 Apply(operations); 2683 maximumPatientCount != 0)
2684 {
2685 Operations operations(maximumStorageSize, maximumPatientCount);
2686 Apply(operations);
2687 }
2684 } 2688 }
2685 2689
2686 2690
2687 StoreStatus StatelessDatabaseOperations::Store(std::map<MetadataType, std::string>& instanceMetadata, 2691 StoreStatus StatelessDatabaseOperations::Store(std::map<MetadataType, std::string>& instanceMetadata,
2688 const DicomMap& dicomSummary, 2692 const DicomMap& dicomSummary,