gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r5162 - GNUnet/src/applications/sqstore_sqlite


From: gnunet
Subject: [GNUnet-SVN] r5162 - GNUnet/src/applications/sqstore_sqlite
Date: Thu, 28 Jun 2007 18:07:10 -0600 (MDT)

Author: grothoff
Date: 2007-06-28 18:07:07 -0600 (Thu, 28 Jun 2007)
New Revision: 5162

Modified:
   GNUnet/src/applications/sqstore_sqlite/sqlite.c
Log:
fixing an sqlite warning

Modified: GNUnet/src/applications/sqstore_sqlite/sqlite.c
===================================================================
--- GNUnet/src/applications/sqstore_sqlite/sqlite.c     2007-06-28 18:35:21 UTC 
(rev 5161)
+++ GNUnet/src/applications/sqstore_sqlite/sqlite.c     2007-06-29 00:07:07 UTC 
(rev 5162)
@@ -1222,11 +1222,15 @@
   deleted = ( (n == SQLITE_DONE) || (n == SQLITE_ROW) ) ? 
sqlite3_changes(dbh->dbh) : SYSERR;
   sqlite3_finalize(stmt);
 
-  if(n != SQLITE_DONE) {
-    LOG_SQLITE(dbh,
-              GE_ERROR | GE_ADMIN | GE_USER | GE_BULK,
-              "sqlite_query");
-    return SYSERR;
+  if (n != SQLITE_DONE) {
+    if (n != SQLITE_BUSY) {
+      LOG_SQLITE(dbh,
+                GE_ERROR | GE_ADMIN | GE_USER | GE_BULK,
+                "sqlite_query");
+      return SYSERR;
+    } else {
+      return NO;
+    }
   }
   db->lastSync++;
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]