Mercurial > hg > orthanc-databases
comparison PostgreSQL/Plugins/StoragePlugin.cpp @ 269:567761f0c1ea
fix issue #151: support of retries in the storage area plugins to deal with multiple writers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 21 Apr 2021 17:54:31 +0200 |
parents | ece4663dedde |
children | 16aac0287485 |
comparison
equal
deleted
inserted
replaced
268:9b003f265a8f | 269:567761f0c1ea |
---|---|
57 } | 57 } |
58 | 58 |
59 try | 59 try |
60 { | 60 { |
61 OrthancDatabases::PostgreSQLParameters parameters(postgresql); | 61 OrthancDatabases::PostgreSQLParameters parameters(postgresql); |
62 OrthancDatabases::StorageBackend::Register | 62 OrthancDatabases::StorageBackend::Register( |
63 (context, new OrthancDatabases::PostgreSQLStorageArea(parameters, false /* don't clear database */)); | 63 context, new OrthancDatabases::PostgreSQLStorageArea(parameters, false /* don't clear database */)); |
64 } | 64 } |
65 catch (Orthanc::OrthancException& e) | 65 catch (Orthanc::OrthancException& e) |
66 { | 66 { |
67 LOG(ERROR) << e.What(); | 67 LOG(ERROR) << e.What(); |
68 return -1; | 68 return -1; |