From: Tim Bunce Date: Tue, 16 Jun 2009 13:06:07 +0000 (+0000) Subject: Removed wording from txn_do that implies the coderef could be executed more than... X-Git-Tag: v0.08108~87 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=acf7eb85d09f8491b7a73af6dd02d7fcf261c3fc;p=dbsrgits%2FDBIx-Class.git Removed wording from txn_do that implies the coderef could be executed more than once. --- diff --git a/lib/DBIx/Class/Storage.pm b/lib/DBIx/Class/Storage.pm index a38cf47..941dc07 100644 --- a/lib/DBIx/Class/Storage.pm +++ b/lib/DBIx/Class/Storage.pm @@ -168,14 +168,8 @@ In a nested transaction (calling txn_do() from within a txn_do() coderef) only the outermost transaction will issue a L, and txn_do() can be called in void, scalar and list context and it will behave as expected. -Please note that all of the code in your coderef, including non-DBIx::Class -code, is part of a transaction. This transaction may fail out halfway, or -it may get partially double-executed (in the case that our DB connection -failed halfway through the transaction, in which case we reconnect and -restart the txn). Therefore it is best that any side-effects in your coderef -are idempotent (that is, can be re-executed multiple times and get the -same result), and that you check up on your side-effects in the case of -transaction failure. +Unlike L, the coderef will I be +automatically retried on error. =cut