Mercurial > hg > orthanc-databases
comparison SQLite/Plugins/IndexPlugin.cpp @ 234:d1b124d116c1
PostgreSQL index plugin handles retries for collisions between multiple writers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Apr 2021 10:50:01 +0200 |
parents | c8e06b41feec |
children | 16aac0287485 |
comparison
equal
deleted
inserted
replaced
233:7d46c99523a2 | 234:d1b124d116c1 |
---|---|
58 | 58 |
59 try | 59 try |
60 { | 60 { |
61 /* Register the SQLite index into Orthanc */ | 61 /* Register the SQLite index into Orthanc */ |
62 OrthancDatabases::IndexBackend::Register( | 62 OrthancDatabases::IndexBackend::Register( |
63 new OrthancDatabases::SQLiteIndex(context, "index.db")); // TODO parameter | 63 new OrthancDatabases::SQLiteIndex(context, "index.db"), // TODO parameter |
64 1 /* only 1 connection is possible with SQLite */, | |
65 0 /* no collision is possible, as SQLite has a global lock */); | |
64 } | 66 } |
65 catch (Orthanc::OrthancException& e) | 67 catch (Orthanc::OrthancException& e) |
66 { | 68 { |
67 LOG(ERROR) << e.What(); | 69 LOG(ERROR) << e.What(); |
68 return -1; | 70 return -1; |