aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_sqlite.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-07-19 11:31:54 +0000
committerChristian Grothoff <christian@grothoff.org>2009-07-19 11:31:54 +0000
commit1e879063d6c677c3cb0f57bbc61b8d908aeb2a05 (patch)
treefb8bf3cbf850a4741137fb4f0615fa1162f14d10 /src/datastore/plugin_datastore_sqlite.c
parentc6689c4e233c663f79cf00449e70ce3c56653f1c (diff)
downloadgnunet-1e879063d6c677c3cb0f57bbc61b8d908aeb2a05.tar.gz
gnunet-1e879063d6c677c3cb0f57bbc61b8d908aeb2a05.zip
bugfixes
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r--src/datastore/plugin_datastore_sqlite.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c
index 99f940317..ce92d3882 100644
--- a/src/datastore/plugin_datastore_sqlite.c
+++ b/src/datastore/plugin_datastore_sqlite.c
@@ -29,7 +29,7 @@
29#include "plugin_datastore.h" 29#include "plugin_datastore.h"
30#include <sqlite3.h> 30#include <sqlite3.h>
31 31
32#define DEBUG_SQLITE GNUNET_NO 32#define DEBUG_SQLITE GNUNET_YES
33 33
34/** 34/**
35 * After how many payload-changing operations 35 * After how many payload-changing operations
@@ -39,14 +39,6 @@
39 39
40#define QUOTA_STAT_NAME gettext_noop ("file-sharing datastore utilization (in bytes)") 40#define QUOTA_STAT_NAME gettext_noop ("file-sharing datastore utilization (in bytes)")
41 41
42
43/**
44 * Die with an error message that indicates
45 * a failure of the command 'cmd' with the message given
46 * by strerror(errno).
47 */
48#define DIE_SQLITE(db, cmd) do { GNUNET_log_from(GNUNET_ERROR_TYPE_ERROR, "sqlite", _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, sqlite3_errmsg(db->dbh)); abort(); } while(0)
49
50/** 42/**
51 * Log an error message at log-level 'level' that indicates 43 * Log an error message at log-level 'level' that indicates
52 * a failure of the command 'cmd' on file 'filename' 44 * a failure of the command 'cmd' on file 'filename'