aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore/plugin_datastore_postgres.c')
-rw-r--r--src/datastore/plugin_datastore_postgres.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index cb077f06a..30a6c20da 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -525,7 +525,8 @@ postgres_plugin_put (void *cls,
525static void 525static void
526process_result (struct Plugin *plugin, 526process_result (struct Plugin *plugin,
527 PluginDatumProcessor proc, void *proc_cls, 527 PluginDatumProcessor proc, void *proc_cls,
528 PGresult *res) 528 PGresult *res,
529 int line)
529{ 530{
530 int iret; 531 int iret;
531 enum GNUNET_BLOCK_Type type; 532 enum GNUNET_BLOCK_Type type;
@@ -541,7 +542,7 @@ process_result (struct Plugin *plugin,
541 PGRES_TUPLES_OK, 542 PGRES_TUPLES_OK,
542 "PQexecPrepared", 543 "PQexecPrepared",
543 "select", 544 "select",
544 __LINE__)) 545 line))
545 { 546 {
546#if DEBUG_POSTGRES 547#if DEBUG_POSTGRES
547 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, 548 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
@@ -800,7 +801,7 @@ postgres_plugin_get_key (void *cls,
800 paramFormats, 1); 801 paramFormats, 1);
801 process_result (plugin, 802 process_result (plugin,
802 proc, proc_cls, 803 proc, proc_cls,
803 ret); 804 ret, __LINE__);
804} 805}
805 806
806 807
@@ -839,7 +840,7 @@ postgres_plugin_get_zero_anonymity (void *cls,
839 paramFormats, 1); 840 paramFormats, 1);
840 process_result (plugin, 841 process_result (plugin,
841 proc, proc_cls, 842 proc, proc_cls,
842 ret); 843 ret, __LINE__);
843} 844}
844 845
845 846
@@ -961,7 +962,7 @@ postgres_plugin_get_replication (void *cls,
961 NULL, NULL, NULL, 1); 962 NULL, NULL, NULL, 1);
962 process_result (plugin, 963 process_result (plugin,
963 &repl_proc, &rc, 964 &repl_proc, &rc,
964 ret); 965 ret, __LINE__);
965} 966}
966 967
967 968
@@ -994,7 +995,7 @@ postgres_plugin_get_expiration (void *cls,
994 1); 995 1);
995 process_result (plugin, 996 process_result (plugin,
996 proc, proc_cls, 997 proc, proc_cls,
997 ret); 998 ret, __LINE__);
998} 999}
999 1000
1000 1001