[mw-devel] MW3 r1080 - trunk/src

arthur at sucs.org arthur at sucs.org
Tue Mar 17 21:25:25 GMT 2009


Author: arthur
Date: 2009-03-17 21:25:25 +0000 (Tue, 17 Mar 2009)
New Revision: 1080

Modified:
   trunk/src/sqlite.c
Log:
try increasingly longer delays when sqlite is busy


Modified: trunk/src/sqlite.c
===================================================================
--- trunk/src/sqlite.c	2009-03-17 20:36:12 UTC (rev 1079)
+++ trunk/src/sqlite.c	2009-03-17 21:25:25 UTC (rev 1080)
@@ -92,7 +92,7 @@
 	do {
 		ret = sqlite3_exec(db, query, db_callback, new, &error);
 		if (ret == SQLITE_BUSY) {
-			usleep(50000);
+			usleep(1000000/retries);
 			retries--;
 		}
 	} while (ret == SQLITE_BUSY && retries > 0);





More information about the mw-devel mailing list