changeset 496:4a76aca03774

fixed uninitialized variable PostgreSQL::isolationMode_
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Apr 2024 20:21:04 +0200
parents 7774958d2a02
children 8e6a95629a22
files Framework/PostgreSQL/PostgreSQLParameters.cpp PostgreSQL/Plugins/PostgreSQLIndex.h
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLParameters.cpp	Mon Mar 25 13:07:25 2024 +0100
+++ b/Framework/PostgreSQL/PostgreSQLParameters.cpp	Tue Apr 02 20:21:04 2024 +0200
@@ -43,6 +43,7 @@
     maxConnectionRetries_ = 10;
     connectionRetryInterval_ = 5;
     isVerboseEnabled_ = false;
+    isolationMode_ = IsolationMode_Serializable;
   }
 
 
--- a/PostgreSQL/Plugins/PostgreSQLIndex.h	Mon Mar 25 13:07:25 2024 +0100
+++ b/PostgreSQL/Plugins/PostgreSQLIndex.h	Tue Apr 02 20:21:04 2024 +0200
@@ -34,11 +34,11 @@
     bool                   clearAll_;
 
   protected:
-    virtual void ClearDeletedFiles(DatabaseManager& manager);
+    virtual void ClearDeletedFiles(DatabaseManager& manager) ORTHANC_OVERRIDE;
 
-    virtual void ClearDeletedResources(DatabaseManager& manager);
+    virtual void ClearDeletedResources(DatabaseManager& manager) ORTHANC_OVERRIDE;
 
-    virtual void ClearRemainingAncestor(DatabaseManager& manager);
+    virtual void ClearRemainingAncestor(DatabaseManager& manager) ORTHANC_OVERRIDE;
 
     void ApplyPrepareIndex(DatabaseManager::Transaction& t, DatabaseManager& manager);