Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 51926 invoked from network); 28 Mar 2007 20:12:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2007 20:12:36 -0000 Received: (qmail 48801 invoked by uid 500); 28 Mar 2007 20:12:35 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 48737 invoked by uid 500); 28 Mar 2007 20:12:35 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 48672 invoked by uid 99); 28 Mar 2007 20:12:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 13:12:34 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 13:12:26 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 6F7941A9838; Wed, 28 Mar 2007 13:12:06 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r523450 - /db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/TransactionController.java Date: Wed, 28 Mar 2007 20:12:06 -0000 To: derby-commits@db.apache.org From: djd@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070328201206.6F7941A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: djd Date: Wed Mar 28 13:12:05 2007 New Revision: 523450 URL: http://svn.apache.org/viewvc?view=rev&rev=523450 Log: Clarify nested connection behaviour in TransactionController following some discussion in DERBY-2490. Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/TransactionController.java Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/TransactionController.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/TransactionController.java?view=diff&rev=523450&r1=523449&r2=523450 ============================================================================== --- db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/TransactionController.java (original) +++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/store/access/TransactionController.java Wed Mar 28 13:12:05 2007 @@ -626,9 +626,11 @@ * startNestedUserTransaction() call, and let the child transaction be the * transaction returned by the startNestedUserTransaction() call. *

- * Only 1 non-readOnly nested user transaction can exist. If a subsequent - * non-readOnly transaction creation is attempted prior to destroying an - * existing write nested user transaction an exception will be thrown. + * A parent transaction can nest a single readonly transaction + * and a single separate read/write transaction. + * If a subsequent nested transaction creation is attempted + * against the parent prior to destroying an existing + * nested user transaction of the same type, an exception will be thrown. *

* The nesting is limited to one level deep. An exception will be thrown * if a subsequent getNestedUserTransaction() is called on the child