diff options
author | stroucki <stroucki@andrew.cmu.edu> | 2016-12-21 04:11:07 -0500 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-12-21 04:11:07 -0500 |
commit | e9f6a4307372b8e82518b10c89a9a7d649153d73 (patch) | |
tree | ae297d7914a18fbd3b66eb3fa86a86061c0e21dd /models/org_team.go | |
parent | 67380cf47b6dfd6ff9999acc73dd7da8f620948f (diff) |
Fix database write context interleaving bug (#3822)
* UpdateIssueUsersByMentions was calling database write operations while
a transaction session was in progress. MailParticipants was failing
silently because of the SQLITE_LOCKED error. Make sure failures in
MailParticipants enter the log, and pass on the transaction context.
issue: let caller pass in database context, and use it
issue_comment: obtain database context to pass to UpdateIssueMentions
issue_comment: log any error from call to MailParticipants
issue_mail: pass on database context to UpdateIssueMentions
* issue: forgot debug statement
Diffstat (limited to 'models/org_team.go')
0 files changed, 0 insertions, 0 deletions