comparison OrthancServer/Sources/ServerIndex.cpp @ 4591:ff8170d17d90 db-changes

moving all accesses to databases from IDatabaseWrapper to ITransaction
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 15 Mar 2021 15:30:42 +0100
parents 4a0bf1019335
children d494b4f1103e
comparison
equal deleted inserted replaced
4590:4a0bf1019335 4591:ff8170d17d90
89 89
90 void Reset() 90 void Reset()
91 { 91 {
92 sizeOfFilesToRemove_ = 0; 92 sizeOfFilesToRemove_ = 0;
93 hasRemainingLevel_ = false; 93 hasRemainingLevel_ = false;
94 remainingType_ = ResourceType_Instance; // dummy initialization
94 pendingFilesToRemove_.clear(); 95 pendingFilesToRemove_.clear();
95 pendingChanges_.clear(); 96 pendingChanges_.clear();
96 sizeOfAddedAttachments_ = 0; 97 sizeOfAddedAttachments_ = 0;
97 } 98 }
98 99
232 { 233 {
233 private: 234 private:
234 ServerContext& context_; 235 ServerContext& context_;
235 236
236 public: 237 public:
237 TransactionContextFactory(ServerContext& context) : 238 explicit TransactionContextFactory(ServerContext& context) :
238 context_(context) 239 context_(context)
239 { 240 {
240 } 241 }
241 242
242 virtual ITransactionContext* Create() 243 virtual ITransactionContext* Create()