[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33539 - gnunet/src/peerstore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33539 - gnunet/src/peerstore |
Date: |
Thu, 5 Jun 2014 15:45:59 +0200 |
Author: otarabai
Date: 2014-06-05 15:45:58 +0200 (Thu, 05 Jun 2014)
New Revision: 33539
Modified:
gnunet/src/peerstore/peerstore_api.c
gnunet/src/peerstore/plugin_peerstore_sqlite.c
gnunet/src/peerstore/test_peerstore_stress_store.c
Log:
peerstore: changed sqlite to async operations
Modified: gnunet/src/peerstore/peerstore_api.c
===================================================================
--- gnunet/src/peerstore/peerstore_api.c 2014-06-05 12:05:13 UTC (rev
33538)
+++ gnunet/src/peerstore/peerstore_api.c 2014-06-05 13:45:58 UTC (rev
33539)
@@ -397,7 +397,9 @@
}
/**
- * Store a new entry in the PEERSTORE
+ * Store a new entry in the PEERSTORE.
+ * Note that stored entries can be lost in some cases
+ * such as power failure.
*
* @param h Handle to the PEERSTORE service
* @param sub_system name of the sub system
Modified: gnunet/src/peerstore/plugin_peerstore_sqlite.c
===================================================================
--- gnunet/src/peerstore/plugin_peerstore_sqlite.c 2014-06-05 12:05:13 UTC
(rev 33538)
+++ gnunet/src/peerstore/plugin_peerstore_sqlite.c 2014-06-05 13:45:58 UTC
(rev 33539)
@@ -435,7 +435,7 @@
}
sql_exec (plugin->dbh, "PRAGMA temp_store=MEMORY");
- sql_exec (plugin->dbh, "PRAGMA synchronous=NORMAL");
+ sql_exec (plugin->dbh, "PRAGMA synchronous=OFF");
sql_exec (plugin->dbh, "PRAGMA legacy_file_format=OFF");
sql_exec (plugin->dbh, "PRAGMA auto_vacuum=INCREMENTAL");
sql_exec (plugin->dbh, "PRAGMA encoding=\"UTF-8\"");
Modified: gnunet/src/peerstore/test_peerstore_stress_store.c
===================================================================
--- gnunet/src/peerstore/test_peerstore_stress_store.c 2014-06-05 12:05:13 UTC
(rev 33538)
+++ gnunet/src/peerstore/test_peerstore_stress_store.c 2014-06-05 13:45:58 UTC
(rev 33539)
@@ -26,7 +26,7 @@
#include "gnunet_testing_lib.h"
#include "gnunet_peerstore_service.h"
-#define STORES 100
+#define STORES 10000
static int ok = 1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33539 - gnunet/src/peerstore,
gnunet <=