[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: Worked on plugin
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: Worked on plugin |
Date: |
Tue, 29 Oct 2019 20:50:31 +0100 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new c09fba4 Worked on plugin
c09fba4 is described below
commit c09fba4fff67bde3a63de801e0b48fb75d17f2cf
Author: Dennis Neufeld <address@hidden>
AuthorDate: Tue Oct 29 19:49:58 2019 +0000
Worked on plugin
---
src/backup-db/plugin_anastasis_postgres.c | 10 ++++++++++
src/include/anastasis_database_plugin.h | 8 ++++++++
2 files changed, 18 insertions(+)
diff --git a/src/backup-db/plugin_anastasis_postgres.c
b/src/backup-db/plugin_anastasis_postgres.c
index 9ab11e0..77d9a83 100644
--- a/src/backup-db/plugin_anastasis_postgres.c
+++ b/src/backup-db/plugin_anastasis_postgres.c
@@ -154,6 +154,7 @@ begin_transaction (struct PostgresClosure *pg,
}
return GNUNET_OK;
}
+
/**
* Roll back the current transaction of a database connection.
*
@@ -944,9 +945,18 @@ libtaler_plugin_anastasis_db_postgres_init (void *cls)
plugin = GNUNET_new (struct ANASTASIS_DatabasePlugin);
plugin->cls = pg;
plugin->drop_tables = &postgres_drop_tables;
+ plugin->preflight = &postgres_preflight;
+ plugin->rollback = &rollback;
+ plugin->commit = &commit_transaction;
plugin->store_recovery_document = &postgres_store_recovery_document;
plugin->record_payment = &postgres_record_payment;
plugin->store_truth = &postgres_store_truth;
+ plugin->get_escrow_challenge = &postgres_get_escrow_challenge;
+ plugin->get_key_share = &postgres_get_key_share;
+ plugin->get_latest_recovery_document =
&postgres_get_latest_recovery_document;
+ plugin->get_recovery_document = &postgres_get_recovery_document;
+ plugin->start = &begin_transaction;
+ plugin->check_connection = &check_connection;
return plugin;
}
diff --git a/src/include/anastasis_database_plugin.h
b/src/include/anastasis_database_plugin.h
index 172afe1..b272f97 100644
--- a/src/include/anastasis_database_plugin.h
+++ b/src/include/anastasis_database_plugin.h
@@ -110,6 +110,14 @@ struct ANASTASIS_DatabasePlugin
void
(*preflight) (void *cls);
+ /**
+ * Check that the database connection is still up.
+ *
+ * @param pg connection to check
+ */
+ void
+ (*check_connection) (struct PostgresClosure *pg);
+
/**
* Roll back the current transaction of a database connection.
*
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [taler-anastasis] branch master updated: Worked on plugin,
gnunet <=