[mw-devel] [Git][arthur/mw][master] 4 commits: Ignore the database being busy.
Imran Hussain
imranh at sucs.org
Wed Oct 21 19:57:33 BST 2015
Imran Hussain pushed to branch master at Justin Mitchell / mw
Commits:
d0579367 by Imran Hussain at 2015-10-21T19:01:46Z
Ignore the database being busy.
This fixes issue https://projects.sucs.org/arthur/mw/issues/3 by just ignoring
busy messages when the DB get overloaded by spamming messages with a hashtag.
- - - - -
09c50855 by Imran Hussain at 2015-10-21T19:20:44Z
I am stupid.
Not checking against a variable.
- - - - -
005eebba by Imran Hussain at 2015-10-21T19:43:18Z
Merge remote-tracking branch 'upstream/master'
- - - - -
b8df4668 by Imran Hussain at 2015-10-21T19:57:26Z
Merge branch 'master' into 'master'
Ignore the database being busy.
This fixes issue https://projects.sucs.org/arthur/mw/issues/3 by just ignoring
busy messages when the DB get overloaded by spamming messages with a hashtag.
See merge request !1
- - - - -
1 changed file:
- src/sqlite.c
Changes:
=====================================
src/sqlite.c
=====================================
--- a/src/sqlite.c
+++ b/src/sqlite.c
@@ -99,7 +99,7 @@ struct db_result *db_query(const char *dbname, const char *query, int quiet)
}
} while (ret == SQLITE_BUSY && retries > 0);
- if (ret != SQLITE_OK) {
+ if (ret != SQLITE_OK && ret != SQLITE_BUSY) {
if (!quiet) {
switch (ret) {
case SQLITE_BUSY: printf("BUSY "); break;
View it on GitLab: https://projects.sucs.org/arthur/mw/compare/012f46b9882aab38d81878af5073c4ed3849ed20...b8df4668dd3d8a6965dbf6e729b3e4bc79df592c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20151021/fac94ec9/attachment.html>
More information about the mw-devel
mailing list