From: Martin Mares Date: Tue, 19 Apr 2011 12:34:44 +0000 (+0200) Subject: Trans: trans_commit() calls rp_commit() X-Git-Tag: v5.0~74^2~14 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=eaadd805826af0ca1fb47ab010d57e8c0cf21a25;p=libucw.git Trans: trans_commit() calls rp_commit() --- 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); }