comparison Framework/Common/DatabaseManager.cpp @ 322:7e9622c64c40

compatibility with Orthanc framework < 1.9.2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Jul 2021 15:52:15 +0200
parents 87f0e29a1dc1
children 16aac0287485
comparison
equal deleted inserted replaced
321:eb0b04c10bc4 322:7e9622c64c40
58 } 58 }
59 59
60 60
61 void DatabaseManager::CloseIfUnavailable(Orthanc::ErrorCode e) 61 void DatabaseManager::CloseIfUnavailable(Orthanc::ErrorCode e)
62 { 62 {
63 if (e != Orthanc::ErrorCode_Success && 63 if (e != Orthanc::ErrorCode_Success
64 e != Orthanc::ErrorCode_DatabaseCannotSerialize) 64 #if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 2)
65 && e != Orthanc::ErrorCode_DatabaseCannotSerialize
66 #endif
67 )
65 { 68 {
66 transaction_.reset(NULL); 69 transaction_.reset(NULL);
67 } 70 }
68 71
69 if (e == Orthanc::ErrorCode_DatabaseUnavailable) 72 if (e == Orthanc::ErrorCode_DatabaseUnavailable)