Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/MySQLIndex.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 | a4918d57435c |
children | 35598014f140 |
comparison
equal
deleted
inserted
replaced
233:7d46c99523a2 | 234:d1b124d116c1 |
---|---|
89 | 89 |
90 if (clearAll_) | 90 if (clearAll_) |
91 { | 91 { |
92 MySQLDatabase::ClearDatabase(parameters_); | 92 MySQLDatabase::ClearDatabase(parameters_); |
93 } | 93 } |
94 | |
95 db.Execute("SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE", false); | |
96 | 94 |
97 { | 95 { |
98 MySQLDatabase::TransientAdvisoryLock lock(db, MYSQL_LOCK_DATABASE_SETUP); | 96 MySQLDatabase::TransientAdvisoryLock lock(db, MYSQL_LOCK_DATABASE_SETUP); |
99 | 97 |
100 /** | 98 /** |