summaryrefslogtreecommitdiff
path: root/src/c/urweb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r--src/c/urweb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 57f57694..ab6e5b1f 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -3283,13 +3283,11 @@ int uw_commit(uw_context ctx) {
}
if (ctx->transaction_started) {
- int code =ctx->app->db_commit(ctx);
+ int code = ctx->app->db_commit(ctx);
if (code) {
- if (code == -1) {
- uw_rollback(ctx, 1);
+ if (code == -1)
return 1;
- }
for (i = ctx->used_transactionals-1; i >= 0; --i)
if (ctx->transactionals[i].free)