gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r25322 - gnunet/src/datastore


From: gnunet
Subject: [GNUnet-SVN] r25322 - gnunet/src/datastore
Date: Fri, 7 Dec 2012 23:33:56 +0100

Author: grothoff
Date: 2012-12-07 23:33:56 +0100 (Fri, 07 Dec 2012)
New Revision: 25322

Modified:
   gnunet/src/datastore/plugin_datastore_mysql.c
Log:
-avoid mysql warning (was harmless, but still not nice)

Modified: gnunet/src/datastore/plugin_datastore_mysql.c
===================================================================
--- gnunet/src/datastore/plugin_datastore_mysql.c       2012-12-07 22:29:53 UTC 
(rev 25321)
+++ gnunet/src/datastore/plugin_datastore_mysql.c       2012-12-07 22:33:56 UTC 
(rev 25322)
@@ -176,7 +176,7 @@
 #define UPDATE_ENTRY "UPDATE gn090 SET 
prio=prio+?,expire=IF(expire>=?,expire,?) WHERE uid=?"
   struct GNUNET_MYSQL_StatementHandle *update_entry;
 
-#define DEC_REPL "UPDATE gn090 SET repl=GREATEST (0, repl - 1) WHERE uid=?"
+#define DEC_REPL "UPDATE gn090 SET repl=GREATEST (1, repl) - 1 WHERE uid=?"
   struct GNUNET_MYSQL_StatementHandle *dec_repl;
 
 #define SELECT_SIZE "SELECT SUM(BIT_LENGTH(value) DIV 8) FROM gn090"




reply via email to

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