]> mj.ucw.cz Git - libucw.git/commitdiff
Trans: trans_commit() calls rp_commit()
authorMartin Mares <mj@ucw.cz>
Tue, 19 Apr 2011 12:34:44 +0000 (14:34 +0200)
committerMartin Mares <mj@ucw.cz>
Tue, 19 Apr 2011 12:34:44 +0000 (14:34 +0200)
ucw/doc/trans.txt
ucw/trans.c

index 349055f72ef37e0d8abf282a342950192500d6f5..b085687b1ae54245ce2ba5dd4ffe172b9f191149 100644 (file)
@@ -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)
index 5f917fd219eea7ee2635968ca093fa137cb90c12..6fc9e8eb1e33f5fffabfa4fd019d7ed471713cb5 100644 (file)
@@ -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);
 }