You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.
If we change the LoadAttributes function to perform its lookups within the same session the results are not the same as those without it, because it appears that at least some of the setup performed in opts.setupSession is not reset following the Find above.
Although this doesn't present a problem at the moment because there is no transaction created and no changes are made to the database, the lack of a complete reset could cause unpredictable heisenbugs elsewhere.
The text was updated successfully, but these errors were encountered:
Hi!
In Gitea at https://github.com/go-gitea/gitea/blob/master/models/issue.go#L1349
If we change the
LoadAttributes
function to perform its lookups within the same session the results are not the same as those without it, because it appears that at least some of the setup performed inopts.setupSession
is not reset following theFind
above.Although this doesn't present a problem at the moment because there is no transaction created and no changes are made to the database, the lack of a complete reset could cause unpredictable heisenbugs elsewhere.
The text was updated successfully, but these errors were encountered: