[open-ils-commits] r8842 - trunk/Open-ILS/src/perlmods/OpenILS/Utils

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Feb 29 09:48:03 EST 2008


Author: erickson
Date: 2008-02-29 09:16:22 -0500 (Fri, 29 Feb 2008)
New Revision: 8842

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
Log:
added check for always_xact since xact flag may not be set in authoritative mode

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm	2008-02-29 14:09:32 UTC (rev 8841)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm	2008-02-29 14:16:22 UTC (rev 8842)
@@ -543,7 +543,7 @@
 	$self->clear_event;
 
 	if( $action eq 'update' or $action eq 'delete' or $action eq 'create' ) {
-		if(!$self->{xact}) {
+		if(!($self->{xact} or $always_xact)) {
 			$logger->error("Attempt to update DB while not in a transaction : $method");
 			throw OpenSRF::EX::ERROR ("Attempt to update DB while not in a transaction : $method");
 		}



More information about the open-ils-commits mailing list