aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-04-15 10:07:05 +0000
committerChristian Grothoff <christian@grothoff.org>2011-04-15 10:07:05 +0000
commit428722ec5368bff32dabf59826ccd87c218f940b (patch)
tree3b1ff6f42fba203d478e9d56a1779f9b1277fad6 /src/datastore
parentb1cb1306723f7e953548fb6c6ebe177bb4910948 (diff)
downloadgnunet-428722ec5368bff32dabf59826ccd87c218f940b.tar.gz
gnunet-428722ec5368bff32dabf59826ccd87c218f940b.zip
fixes
Diffstat (limited to 'src/datastore')
-rw-r--r--src/datastore/plugin_datastore_mysql.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/datastore/plugin_datastore_mysql.c b/src/datastore/plugin_datastore_mysql.c
index 84f9d313c..fdbb9d1b5 100644
--- a/src/datastore/plugin_datastore_mysql.c
+++ b/src/datastore/plugin_datastore_mysql.c
@@ -657,7 +657,7 @@ init_params (struct Plugin *plugin,
657 } 657 }
658 if (! ( (pc == 0) && (-1 != (int) ft) && (va_arg (ap, int) == -1) ) ) 658 if (! ( (pc == 0) && (-1 != (int) ft) && (va_arg (ap, int) == -1) ) )
659 { 659 {
660 GNUNET_break (0); 660 GNUNET_assert (0);
661 return GNUNET_SYSERR; 661 return GNUNET_SYSERR;
662 } 662 }
663 if (mysql_stmt_bind_param (s->statement, qbind)) 663 if (mysql_stmt_bind_param (s->statement, qbind))
@@ -1465,14 +1465,11 @@ replication_prepare (void *cls,
1465 struct NextRequestClosure *nrc) 1465 struct NextRequestClosure *nrc)
1466{ 1466{
1467 struct Plugin *plugin = cls; 1467 struct Plugin *plugin = cls;
1468 unsigned long long nt;
1469 1468
1470 nt = (unsigned long long) nrc->now.abs_value;
1471 return prepared_statement_run_select (plugin, 1469 return prepared_statement_run_select (plugin,
1472 plugin->select_replication, 1470 plugin->select_replication,
1473 6, nrc->rbind, 1471 7, nrc->rbind,
1474 &return_ok, NULL, 1472 &return_ok, NULL,
1475 MYSQL_TYPE_LONGLONG, &nt, GNUNET_YES,
1476 -1); 1473 -1);
1477} 1474}
1478 1475