diff options
author | Adam Chlipala <adam@chlipala.net> | 2013-12-27 12:30:44 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2013-12-27 12:30:44 -0500 |
commit | 698214e8d588850082397705aee2a7cef09fa236 (patch) | |
tree | 610805f9ebfa7d17f6089b5dd7f356a20c1444c0 | |
parent | ee16149ddef734c9945ff0339300fd926ca91b1a (diff) |
Change where a transaction is marked finished, to avoid forgetting to rollback a failed transaction
-rw-r--r-- | src/c/urweb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index 0265c67f..0a385cae 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -634,7 +634,6 @@ void uw_reset_keep_error_message(uw_context ctx) { ctx->amInitializing = 0; ctx->usedSig = 0; ctx->needsResig = 0; - ctx->transaction_started = 0; } void uw_reset_keep_request(uw_context ctx) { @@ -648,6 +647,7 @@ void uw_reset(uw_context ctx) { memset(ctx->inputs, 0, ctx->app->inputs_len * sizeof(input)); memset(ctx->subinputs, 0, ctx->n_subinputs * sizeof(input)); ctx->used_subinputs = ctx->hasPostBody = ctx->isPost = 0; + ctx->transaction_started = 0; } failure_kind uw_begin_init(uw_context ctx) { |