[open-ils-commits] r8843 - branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Utils

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


Author: erickson
Date: 2008-02-29 09:17:01 -0500 (Fri, 29 Feb 2008)
New Revision: 8843

Modified:
   branches/acq-experiment/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: branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
===================================================================
--- branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm	2008-02-29 14:16:22 UTC (rev 8842)
+++ branches/acq-experiment/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm	2008-02-29 14:17:01 UTC (rev 8843)
@@ -596,7 +596,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