diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-11-10 17:22:31 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-11-10 17:22:44 +0100 |
commit | 9508cb1806608274262f70efee9d43630b81ccd3 (patch) | |
tree | a475e295aa36dd165278bd36a2a75d2ff3469512 /src/include | |
parent | 0e68462e9040c2cbb536d0b0f797fa2e7aab064a (diff) |
ensure we do not start if the database version is outdated (#9203)
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_auditordb_lib.h | 6 | ||||
-rw-r--r-- | src/include/taler_exchangedb_lib.h | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/include/taler_auditordb_lib.h b/src/include/taler_auditordb_lib.h index 882e37e11..49f3bc011 100644 --- a/src/include/taler_auditordb_lib.h +++ b/src/include/taler_auditordb_lib.h @@ -151,10 +151,14 @@ enum TALER_AUDITORDB_DeletableSuppressableTables * Initialize the plugin. * * @param cfg configuration to use + * @param skip_preflight true if we should skip the usual + * preflight check which assures us that the DB is actually + * operational; only taler-auditor-dbinit should use true here. * @return NULL on failure */ struct TALER_AUDITORDB_Plugin * -TALER_AUDITORDB_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg); +TALER_AUDITORDB_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg, + bool skip_preflight); /** diff --git a/src/include/taler_exchangedb_lib.h b/src/include/taler_exchangedb_lib.h index fdedfa056..825578c95 100644 --- a/src/include/taler_exchangedb_lib.h +++ b/src/include/taler_exchangedb_lib.h @@ -32,20 +32,25 @@ * Initialize the plugin. * * @param cfg configuration to use + * @param skip_preflight true if we should skip the usual + * preflight check which assures us that the DB is actually + * operational; only taler-exchange-dbinit should use true here. * @return NULL on failure */ struct TALER_EXCHANGEDB_Plugin * -TALER_EXCHANGEDB_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg); +TALER_EXCHANGEDB_plugin_load (const struct GNUNET_CONFIGURATION_Handle *cfg, + bool skip_preflight); /** * Shutdown the plugin. * - * @param plugin plugin to unload + * @param[in] plugin plugin to unload */ void TALER_EXCHANGEDB_plugin_unload (struct TALER_EXCHANGEDB_Plugin *plugin); + /** * Information about an account from the configuration. */ |