mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
a35714372d
Related to #22362. I overlooked that there's always `committer.Close()`, like: ```go ctx, committer, err := db.TxContext(db.DefaultContext) if err != nil { return nil } defer committer.Close() // ... if err != nil { return nil } // ... return committer.Commit() ``` So the `Close` of `halfCommitter` should ignore `commit and close`, it's not a rollback. See: [Why `halfCommitter` and `WithTx` should rollback IMMEDIATELY or commit LATER](https://github.com/go-gitea/gitea/pull/22366#issuecomment-1374778612). Co-authored-by: techknowlogick <techknowlogick@gitea.io> |
2 years ago | |
---|---|---|
.. | ||
install | 2 years ago | |
paginator | 2 years ago | |
common.go | 2 years ago | |
consistency.go | 2 years ago | |
context.go | 2 years ago | |
context_committer_test.go | 2 years ago | |
context_test.go | 2 years ago | |
convert.go | 2 years ago | |
engine.go | 2 years ago | |
engine_test.go | 2 years ago | |
error.go | 2 years ago | |
index.go | 2 years ago | |
index_test.go | 2 years ago | |
iterate.go | 2 years ago | |
iterate_test.go | 2 years ago | |
list_options.go | 2 years ago | |
log.go | 2 years ago | |
main_test.go | 2 years ago | |
name.go | 2 years ago | |
search.go | 2 years ago | |
sequence.go | 2 years ago | |
sql_postgres_with_schema.go | 2 years ago |