Skip to content

Conversation

stroucki
Copy link
Contributor

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.
Addresses #3760.

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

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
@stroucki stroucki mentioned this pull request Oct 27, 2016
6 tasks
@stroucki
Copy link
Contributor Author

stroucki commented Oct 28, 2016

That output looks like a problem with Travis. But the raw file said where the problem was. I forgot a debugging statement.

@unknwon
Copy link
Member

unknwon commented Dec 21, 2016

Thanks!

@unknwon unknwon merged commit e9f6a43 into gogs:develop Dec 21, 2016
unknwon added a commit that referenced this pull request Dec 21, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants