aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-06-05 13:45:58 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-06-05 13:45:58 +0000
commit0e401901158427e51fc3b2d1bb58cb8b6bc6d499 (patch)
treea839d0ea624aab0f1031c884d3784c97d529fb07 /src
parentd33c98924608b9aa01fe5e77330a7d7f11849acb (diff)
downloadgnunet-0e401901158427e51fc3b2d1bb58cb8b6bc6d499.tar.gz
gnunet-0e401901158427e51fc3b2d1bb58cb8b6bc6d499.zip
peerstore: changed sqlite to async operations
Diffstat (limited to 'src')
-rw-r--r--src/peerstore/peerstore_api.c4
-rw-r--r--src/peerstore/plugin_peerstore_sqlite.c2
-rw-r--r--src/peerstore/test_peerstore_stress_store.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c
index ea8579517..2b1cc6a1d 100644
--- a/src/peerstore/peerstore_api.c
+++ b/src/peerstore/peerstore_api.c
@@ -397,7 +397,9 @@ GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc)
397} 397}
398 398
399/** 399/**
400 * Store a new entry in the PEERSTORE 400 * Store a new entry in the PEERSTORE.
401 * Note that stored entries can be lost in some cases
402 * such as power failure.
401 * 403 *
402 * @param h Handle to the PEERSTORE service 404 * @param h Handle to the PEERSTORE service
403 * @param sub_system name of the sub system 405 * @param sub_system name of the sub system
diff --git a/src/peerstore/plugin_peerstore_sqlite.c b/src/peerstore/plugin_peerstore_sqlite.c
index 3dd67024b..fdf25c79c 100644
--- a/src/peerstore/plugin_peerstore_sqlite.c
+++ b/src/peerstore/plugin_peerstore_sqlite.c
@@ -435,7 +435,7 @@ database_setup (struct Plugin *plugin)
435 } 435 }
436 436
437 sql_exec (plugin->dbh, "PRAGMA temp_store=MEMORY"); 437 sql_exec (plugin->dbh, "PRAGMA temp_store=MEMORY");
438 sql_exec (plugin->dbh, "PRAGMA synchronous=NORMAL"); 438 sql_exec (plugin->dbh, "PRAGMA synchronous=OFF");
439 sql_exec (plugin->dbh, "PRAGMA legacy_file_format=OFF"); 439 sql_exec (plugin->dbh, "PRAGMA legacy_file_format=OFF");
440 sql_exec (plugin->dbh, "PRAGMA auto_vacuum=INCREMENTAL"); 440 sql_exec (plugin->dbh, "PRAGMA auto_vacuum=INCREMENTAL");
441 sql_exec (plugin->dbh, "PRAGMA encoding=\"UTF-8\""); 441 sql_exec (plugin->dbh, "PRAGMA encoding=\"UTF-8\"");
diff --git a/src/peerstore/test_peerstore_stress_store.c b/src/peerstore/test_peerstore_stress_store.c
index 523274c16..c5113c74b 100644
--- a/src/peerstore/test_peerstore_stress_store.c
+++ b/src/peerstore/test_peerstore_stress_store.c
@@ -26,7 +26,7 @@
26#include "gnunet_testing_lib.h" 26#include "gnunet_testing_lib.h"
27#include "gnunet_peerstore_service.h" 27#include "gnunet_peerstore_service.h"
28 28
29#define STORES 100 29#define STORES 10000
30 30
31static int ok = 1; 31static int ok = 1;
32 32