Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp @ 4594:d494b4f1103e db-changes
removed the global database mutex from ServerIndex and StatelessDatabaseOperations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 16 Mar 2021 12:43:43 +0100 |
parents | ff8170d17d90 |
children | cc64385593ef |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp Mon Mar 15 18:22:53 2021 +0100 +++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.cpp Tue Mar 16 12:43:43 2021 +0100 @@ -605,14 +605,12 @@ { try { - boost::mutex::scoped_lock lock(databaseMutex_); // TODO - REMOVE - if (readOperations != NULL) { /** * IMPORTANT: In Orthanc <= 1.9.1, there was no transaction * in this case. This was OK because of the presence of the - * global mutex protecting the database. + * global mutex that was protecting the database. **/ Transaction transaction(db_, *factory_, TransactionType_ReadOnly); // TODO - Only if not "TransactionType_Implicit" @@ -682,8 +680,6 @@ void StatelessDatabaseOperations::FlushToDisk() { - boost::mutex::scoped_lock lock(databaseMutex_); - try { db_.FlushToDisk();