ea35ae4d1f
Chore: Update the xorm dependency ( #22376 )
...
* Upgrade xorm
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-04-01 15:57:21 +02:00
3798ac903d
Upgrade golangci-lint and fixes some linting errors. ( #22909 )
...
Example: https://play.golang.org/p/cfPIPG3BwjJ
2020-03-23 13:37:53 +01:00
140e267639
delete redundant alias ( #21907 )
...
* delete redundant alias
Fixes #21906
2020-02-05 09:00:40 +01:00
2a78d2a61c
pkg/services: Check errors ( #19712 )
...
* pkg/services: Check errors
* pkg/services: Don't treat context.Canceled|context.DeadlineExceeded as error
2019-10-22 14:08:18 +02:00
5884e235fc
database: retry transaction if sqlite returns database is locked error ( #17276 )
...
Adds an additional sqlite error code 5 (SQLITE_BUSY) to the
transaction retry handler to add retries when sqlite
returns database is locked error.
More info: https://www.sqlite.org/rescode.html#busy
Ref #17247 #16638
2019-05-27 09:24:15 +02:00
756da8a134
Fix: tighten revive exit code & make it happy ( #17127 )
...
* Revive should fail the build
* Fix the associated errors
2019-05-17 08:35:37 +03:00
3dbc3251d1
Chore: Deduplicate sqlstore transaction code ( #17069 )
...
* Deduplicate transaction code
* More deduplication
2019-05-16 12:39:59 +02:00
2fff8f77dc
move log package to /infra ( #17023 )
...
ref #14679
Signed-off-by: zhulongcheng <zhulongcheng.me@gmail.com>
2019-05-13 08:45:54 +02:00
12c9860882
string formating fixes
2018-08-28 22:33:38 +02:00
4c5fe68e7e
adds inTransactionCtx that calls inTransactionWithRetryCtx
2018-06-15 21:57:13 +02:00
da91b91b4b
transactions: start sessions and transactions at the same place
...
this make it possible for handler to use `withSession` when
transactions is not nedded and `inTransactionCtx` if its needed
without knowing who owns the session/transaction
2018-06-15 20:52:57 +02:00
9ca9a7c302
bus: dont start transaction when creating session
2018-06-15 12:46:20 +02:00
442e0e437b
refactoring: transaction manager PR #12203
2018-06-15 12:46:20 +02:00