diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-01 11:55:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-01 11:56:52 +0200 |
commit | 76cf111084c13d5dc2d4ba686ecbbdeb8ff1ade9 (patch) | |
tree | d4fc196e98d9d0b10563e939d626ace7c03fcb34 /src/backend/taler-merchant-httpd_private-post-products-ID-lock.c | |
parent | 42d323d4344c748e1e793a606646c932d998cb47 (diff) | |
download | merchant-76cf111084c13d5dc2d4ba686ecbbdeb8ff1ade9.tar.gz merchant-76cf111084c13d5dc2d4ba686ecbbdeb8ff1ade9.tar.bz2 merchant-76cf111084c13d5dc2d4ba686ecbbdeb8ff1ade9.zip |
-implement lock expiratin (#6937)
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-products-ID-lock.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-products-ID-lock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c b/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c index 7fc7b0ac..9983b520 100644 --- a/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c +++ b/src/backend/taler-merchant-httpd_private-post-products-ID-lock.c @@ -24,6 +24,7 @@ */ #include "platform.h" #include "taler-merchant-httpd_private-post-products-ID-lock.h" +#include "taler-merchant-httpd_helper.h" #include <taler/taler_json_lib.h> @@ -64,6 +65,7 @@ TMH_private_post_products_ID_lock (const struct TMH_RequestHandler *rh, } TMH_uuid_from_string (uuids, &uuid); + TMH_db->expire_locks (TMH_db->cls); qs = TMH_db->lock_product (TMH_db->cls, mi->settings.id, product_id, |