add post HTTP request check for hanging transactions
This commit is contained in:
parent
5d3ae9655e
commit
32a3a0ffb0
@ -146,6 +146,12 @@ handle_mhd_completion_callback (void *cls,
|
||||
return;
|
||||
TEH_PARSE_post_cleanup_callback (*con_cls);
|
||||
*con_cls = NULL;
|
||||
/* check that we didn't leave any transactions hanging */
|
||||
/* NOTE: In high-performance production, we might want to
|
||||
remove this. */
|
||||
TEH_plugin->preflight (TEH_plugin->cls,
|
||||
TEH_plugin->get_session (TEH_plugin->cls));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -1075,11 +1075,9 @@ postgres_prepare (PGconn *db_conn)
|
||||
",h_contract_terms"
|
||||
",h_wire"
|
||||
" FROM deposits"
|
||||
" WHERE ("
|
||||
" (coin_pub=$1)"
|
||||
" WHERE ((coin_pub=$1)"
|
||||
" AND (merchant_pub=$3)"
|
||||
" AND (h_contract_terms=$2)"
|
||||
" )"
|
||||
" AND (h_contract_terms=$2))"
|
||||
" FOR UPDATE;",
|
||||
3),
|
||||
/* Fetch deposits with rowid '\geq' the given parameter */
|
||||
|
Loading…
Reference in New Issue
Block a user