1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/models/db
Giteabot 78795dd566
Fix misuse of TxContext (#30061) (#30062)
Backport #30061 by @wolfogre

Help #29999, or its tests cannot pass.

Also, add some comments to clarify the usage of `TxContext`.

I don't check all usages of `TxContext` because there are too many
(almost 140+). It's a better idea to replace them with `WithTx` instead
of checking them one by one. However, that may be another refactoring
PR.

Co-authored-by: Jason Song <i@wolfogre.com>
2024-03-25 07:22:09 +00:00
..
install
paginator
common.go
consistency.go
context_committer_test.go
context_test.go
context.go Fix misuse of TxContext (#30061) (#30062) 2024-03-25 07:22:09 +00:00
convert.go
engine_test.go
engine.go Avoid cycle-redirecting user/login page (#28636) (#28658) 2023-12-30 20:50:08 +08:00
error.go Also sync DB branches on push if necessary (#28361) (#28403) 2023-12-11 06:16:56 +00:00
index_test.go
index.go
iterate_test.go
iterate.go
list_test.go
list.go
log.go
main_test.go
name.go
search.go
sequence.go
sql_postgres_with_schema.go