fix(ee-backend): prepare clickhouse statement even on commit error
This commit is contained in:
parent
7d81a040e7
commit
ecbdfc27bb
1 changed files with 5 additions and 6 deletions
|
|
@ -73,12 +73,11 @@ func commitStats() error {
|
|||
}
|
||||
default:
|
||||
}
|
||||
if err := ch.Commit(); err != nil {
|
||||
return err
|
||||
errCommit := ch.Commit()
|
||||
errPrepare := ch.Prepare()
|
||||
if errCommit != nil {
|
||||
return errCommit
|
||||
}
|
||||
if err := ch.Prepare(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return errPrepare
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue