mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Merge branch 'bugfix/serializable' into 'master'
Get rid of serializable transactions See merge request icingadb/icingadb-main!28
This commit is contained in:
commit
10fdcd3362
2 changed files with 2 additions and 2 deletions
|
|
@ -384,7 +384,7 @@ func historyWorker(super *supervisor.Supervisor, objectType string, historyType
|
|||
}
|
||||
|
||||
for {
|
||||
errTx := super.Dbw.SqlTransaction(true, true, false, func(tx connection.DbTransaction) error {
|
||||
errTx := super.Dbw.SqlTransaction(false, true, false, func(tx connection.DbTransaction) error {
|
||||
for i, state := range entries {
|
||||
for statementIndex, statement := range preparedStatements {
|
||||
_, errExec := super.Dbw.SqlExecTx(
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ func syncStates(super *supervisor.Supervisor, objectType string) {
|
|||
}
|
||||
|
||||
for {
|
||||
errTx := super.Dbw.SqlTransaction(true, true, false, func(tx connection.DbTransaction) error {
|
||||
errTx := super.Dbw.SqlTransaction(false, true, false, func(tx connection.DbTransaction) error {
|
||||
for i, state := range states {
|
||||
values := state.Values
|
||||
id, _ := hex.DecodeString(values["id"].(string))
|
||||
|
|
|
|||
Loading…
Reference in a new issue