summaryrefslogtreecommitdiff
path: root/src/exchange
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-23 08:24:59 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-23 08:24:59 +0200
commit01e06eb715938b914c54123c21c7c7678e08ee02 (patch)
tree85d8053916faa7bfddb711023d8c7959cb83aa5f /src/exchange
parent82a5038acf5302957ca450d9c262f6fed59a45ba (diff)
downloadexchange-01e06eb715938b914c54123c21c7c7678e08ee02.tar.gz
exchange-01e06eb715938b914c54123c21c7c7678e08ee02.tar.bz2
exchange-01e06eb715938b914c54123c21c7c7678e08ee02.zip
-remove sessions also from auditor
Diffstat (limited to 'src/exchange')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c
index f37aafbd..3b561634 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -344,9 +344,7 @@ static struct TEH_KeyStateHandle *key_state;
/**
* Counter incremented whenever we have a reason to re-build the keys because
- * something external changed (in another thread). The counter is manipulated
- * using an atomic update, and thus to ensure that threads notice when it
- * changes, the variable MUST be volatile. See #TEH_keys_get_state() and
+ * something external changed (in another thread). See #TEH_keys_get_state() and
* #TEH_keys_update_states() for uses of this variable.
*/
static uint64_t key_generation;
@@ -1721,8 +1719,7 @@ build_key_state (struct HelperState *hs,
void
TEH_keys_update_states ()
{
- __sync_fetch_and_add (&key_generation,
- 1);
+ key_generation++;
TEH_resume_keys_requests (false);
}