diff options
Diffstat (limited to 'src/datastore/plugin_datastore_mysql.c')
-rw-r--r-- | src/datastore/plugin_datastore_mysql.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/datastore/plugin_datastore_mysql.c b/src/datastore/plugin_datastore_mysql.c index 40f25deee..923660dc2 100644 --- a/src/datastore/plugin_datastore_mysql.c +++ b/src/datastore/plugin_datastore_mysql.c | |||
@@ -363,7 +363,7 @@ mysql_plugin_update (void *cls, uint64_t uid, int delta, | |||
363 | 363 | ||
364 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 364 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
365 | "Updating value %llu adding %d to priority and maxing exp at %s\n", | 365 | "Updating value %llu adding %d to priority and maxing exp at %s\n", |
366 | vkey, delta, | 366 | vkey, delta, |
367 | GNUNET_STRINGS_absolute_time_to_string (expire)); | 367 | GNUNET_STRINGS_absolute_time_to_string (expire)); |
368 | ret = | 368 | ret = |
369 | GNUNET_MYSQL_statement_run_prepared (plugin->mc, plugin->update_entry, NULL, | 369 | GNUNET_MYSQL_statement_run_prepared (plugin->mc, plugin->update_entry, NULL, |
@@ -454,7 +454,7 @@ execute_select (struct Plugin *plugin, struct GNUNET_MYSQL_StatementHandle *stmt | |||
454 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 454 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
455 | "Found %u-byte value under key `%s' with prio %u, anon %u, expire %s selecting from gn090 table\n", | 455 | "Found %u-byte value under key `%s' with prio %u, anon %u, expire %s selecting from gn090 table\n", |
456 | (unsigned int) size, GNUNET_h2s (&key), | 456 | (unsigned int) size, GNUNET_h2s (&key), |
457 | priority, anonymity, | 457 | priority, anonymity, |
458 | GNUNET_STRINGS_absolute_time_to_string (expiration)); | 458 | GNUNET_STRINGS_absolute_time_to_string (expiration)); |
459 | GNUNET_assert (size < MAX_DATUM_SIZE); | 459 | GNUNET_assert (size < MAX_DATUM_SIZE); |
460 | ret = | 460 | ret = |
@@ -769,7 +769,7 @@ mysql_plugin_get_keys (void *cls, | |||
769 | struct GNUNET_HashCode key; | 769 | struct GNUNET_HashCode key; |
770 | MYSQL_BIND cbind[1]; | 770 | MYSQL_BIND cbind[1]; |
771 | unsigned long length; | 771 | unsigned long length; |
772 | 772 | ||
773 | statement = GNUNET_MYSQL_statement_get_stmt (plugin->mc, | 773 | statement = GNUNET_MYSQL_statement_get_stmt (plugin->mc, |
774 | plugin->get_all_keys); | 774 | plugin->get_all_keys); |
775 | if (statement == NULL) | 775 | if (statement == NULL) |
@@ -812,14 +812,14 @@ mysql_plugin_get_keys (void *cls, | |||
812 | while (0 == (ret = mysql_stmt_fetch (statement))) | 812 | while (0 == (ret = mysql_stmt_fetch (statement))) |
813 | { | 813 | { |
814 | if (sizeof (struct GNUNET_HashCode) == length) | 814 | if (sizeof (struct GNUNET_HashCode) == length) |
815 | proc (proc_cls, &key, 1); | 815 | proc (proc_cls, &key, 1); |
816 | } | 816 | } |
817 | if (ret != MYSQL_NO_DATA) | 817 | if (ret != MYSQL_NO_DATA) |
818 | { | 818 | { |
819 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 819 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
820 | _("`%s' failed at %s:%d with error: %s\n"), | 820 | _("`%s' failed at %s:%d with error: %s\n"), |
821 | "mysql_stmt_fetch", __FILE__, __LINE__, | 821 | "mysql_stmt_fetch", __FILE__, __LINE__, |
822 | mysql_stmt_error (statement)); | 822 | mysql_stmt_error (statement)); |
823 | GNUNET_MYSQL_statements_invalidate (plugin->mc); | 823 | GNUNET_MYSQL_statements_invalidate (plugin->mc); |
824 | return; | 824 | return; |
825 | } | 825 | } |