diff options
-rw-r--r-- | src/peerstore/peerstore_api.c | 4 | ||||
-rw-r--r-- | src/peerstore/plugin_peerstore_sqlite.c | 2 | ||||
-rw-r--r-- | src/peerstore/test_peerstore_stress_store.c | 2 |
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 | ||
31 | static int ok = 1; | 31 | static int ok = 1; |
32 | 32 | ||