diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-07-03 14:00:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-07-03 14:00:11 +0200 |
commit | c252aa91ad616bdd9a353740427a56eb5cdc7b64 (patch) | |
tree | eaddc8c5fc999e5a89045b58fac3de2aa144bc24 /src | |
parent | 2daf5c4566cd2b175e4f22646041eeaf4e8c81c5 (diff) | |
download | merchant-c252aa91ad616bdd9a353740427a56eb5cdc7b64.tar.gz merchant-c252aa91ad616bdd9a353740427a56eb5cdc7b64.tar.bz2 merchant-c252aa91ad616bdd9a353740427a56eb5cdc7b64.zip |
a few more checks for #6774, but still unable to reproduce
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-tips-ID-pickup.c | 3 | ||||
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c b/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c index 7d3f7806..32d78eca 100644 --- a/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c +++ b/src/backend/taler-merchant-httpd_post-tips-ID-pickup.c @@ -290,6 +290,7 @@ withdraw_cb (void *cls, GNUNET_CONTAINER_DLL_remove (pc->po_head, pc->po_tail, po); + TMH_db->preflight (TMH_db->cls); if (NULL == blind_sig) { GNUNET_free (po); @@ -361,6 +362,7 @@ do_withdraw (void *cls, struct PickupContext *pc = po->pc; po->fo = NULL; + TMH_db->preflight (TMH_db->cls); if (NULL == hr) { stop_operations (pc); @@ -421,6 +423,7 @@ try_withdraw (struct PickupContext *pc, { struct PlanchetOperation *po; + TMH_db->preflight (TMH_db->cls); po = GNUNET_new (struct PlanchetOperation); po->pc = pc; po->pd = *planchet; diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 9b39365b..57ad85e6 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -229,7 +229,7 @@ postgres_preflight (void *cls) struct PostgresClosure *pg = cls; if (NULL == pg->transaction_name) - return; /* all good */ + return true; /* all good */ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "BUG: Preflight check detected running transaction `%s'!\n", pg->transaction_name); |