From eaadd805826af0ca1fb47ab010d57e8c0cf21a25 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 19 Apr 2011 14:34:44 +0200 Subject: [PATCH] Trans: trans_commit() calls rp_commit() --- ucw/doc/trans.txt | 3 ++- ucw/trans.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ucw/doc/trans.txt b/ucw/doc/trans.txt index 349055f7..b085687b 100644 --- a/ucw/doc/trans.txt +++ b/ucw/doc/trans.txt @@ -49,7 +49,8 @@ When a transaction ends, the pool is destroyed and the previous active pool is popped off the transaction stack. The fate of the resources inside the pool depends on the operation used to end the transaction: -* *commit* -- all resources are detached from the pool +* *commit* -- permanent resources are detached from the pool, temporary + resources are freed * *rollback* -- all resources are freed * *fold* -- instead of destroying the pool, it is added as a subpool to the parent transaction (which must exist) diff --git a/ucw/trans.c b/ucw/trans.c index 5f917fd2..6fc9e8eb 100644 --- a/ucw/trans.c +++ b/ucw/trans.c @@ -93,7 +93,7 @@ trans_commit(void) DBG("Committing transaction %p", t); ASSERT(t); ASSERT(!t->thrown_exc); - rp_detach(t->rpool); + rp_commit(t->rpool); trans_pop(t, c); trans_drop(t, c); } -- 2.39.2