aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_namestore_sqlite.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-10-03 13:23:35 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-10-03 13:23:35 +0900
commite891aa916c09b3e79c02f7c486f3e1a1c015769a (patch)
treee0e3eb9c1828b8652c91bc9bb624395ebe256544 /src/namestore/plugin_namestore_sqlite.c
parent4611664be0ba79ec7029a74cf961f28f2a658241 (diff)
downloadgnunet-e891aa916c09b3e79c02f7c486f3e1a1c015769a.tar.gz
gnunet-e891aa916c09b3e79c02f7c486f3e1a1c015769a.zip
NAMESTORE: Bulk store API and fix for delayed store activities
New API: GNUNET_NAMESTORE_records_store2 which allows the caller to pass an array of records in order to facilitate bulk import of zone data. Further, the transactional API requires that monitors and namecache updates are delayed until transactions are actually commited.
Diffstat (limited to 'src/namestore/plugin_namestore_sqlite.c')
-rw-r--r--src/namestore/plugin_namestore_sqlite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c
index f1097ad0a..35fd340ab 100644
--- a/src/namestore/plugin_namestore_sqlite.c
+++ b/src/namestore/plugin_namestore_sqlite.c
@@ -871,6 +871,7 @@ database_connect (struct Plugin *plugin)
871 GNUNET_free (sqlite_filename); 871 GNUNET_free (sqlite_filename);
872 return GNUNET_SYSERR; 872 return GNUNET_SYSERR;
873 } 873 }
874 GNUNET_free (sqlite_filename);
874 GNUNET_break (SQLITE_OK == 875 GNUNET_break (SQLITE_OK ==
875 sqlite3_busy_timeout (plugin->dbh, 876 sqlite3_busy_timeout (plugin->dbh,
876 BUSY_TIMEOUT_MS)); 877 BUSY_TIMEOUT_MS));