Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerIndex.h @ 4581:bb3c82b8f373 db-changes
transient introduction of ServerIndex::databaseMutex_
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Mar 2021 15:22:03 +0100 |
parents | 49f6b9a2b9f5 |
children | fb0379abb4a7 |
comparison
equal
deleted
inserted
replaced
4580:49f6b9a2b9f5 | 4581:bb3c82b8f373 |
---|---|
60 class UnstableResourcePayload; | 60 class UnstableResourcePayload; |
61 class MainDicomTagsRegistry; | 61 class MainDicomTagsRegistry; |
62 | 62 |
63 bool done_; | 63 bool done_; |
64 boost::mutex monitoringMutex_; | 64 boost::mutex monitoringMutex_; |
65 boost::mutex databaseMutex_; // TODO - REMOVE | |
65 boost::thread flushThread_; | 66 boost::thread flushThread_; |
66 boost::thread unstableResourcesMonitorThread_; | 67 boost::thread unstableResourcesMonitorThread_; |
67 | 68 |
68 std::unique_ptr<Listener> listener_; | 69 std::unique_ptr<Listener> listener_; |
69 IDatabaseWrapper& db_; | 70 IDatabaseWrapper& db_; |
83 unsigned int maximumPatientCount); | 84 unsigned int maximumPatientCount); |
84 | 85 |
85 void MarkAsUnstable(int64_t id, | 86 void MarkAsUnstable(int64_t id, |
86 Orthanc::ResourceType type, | 87 Orthanc::ResourceType type, |
87 const std::string& publicId); | 88 const std::string& publicId); |
88 | |
89 void LogChange(int64_t internalId, | |
90 ChangeType changeType, | |
91 ResourceType resourceType, | |
92 const std::string& publicId); | |
93 | 89 |
94 void NormalizeLookup(std::vector<DatabaseConstraint>& target, | 90 void NormalizeLookup(std::vector<DatabaseConstraint>& target, |
95 const DatabaseLookup& source, | 91 const DatabaseLookup& source, |
96 ResourceType level) const; | 92 ResourceType level) const; |
97 | 93 |
377 } | 373 } |
378 | 374 |
379 void LogChange(int64_t internalId, | 375 void LogChange(int64_t internalId, |
380 ChangeType changeType, | 376 ChangeType changeType, |
381 ResourceType resourceType, | 377 ResourceType resourceType, |
382 const std::string& publicId) | 378 const std::string& publicId); |
383 { | |
384 index_.LogChange(internalId, changeType, resourceType, publicId); | |
385 } | |
386 | 379 |
387 void LogExportedResource(const ExportedResource& resource) | 380 void LogExportedResource(const ExportedResource& resource) |
388 { | 381 { |
389 db_.LogExportedResource(resource); | 382 db_.LogExportedResource(resource); |
390 } | 383 } |