From: erickson Date: Tue, 1 Sep 2009 20:34:20 +0000 (+0000) Subject: return the status of xact_commit from the commit wrapper X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f7337946d89f2cdfd6d60917585a746aa3ae40ea;p=evergreen%2Fbjwebb.git return the status of xact_commit from the commit wrapper git-svn-id: svn://svn.open-ils.org/ILS/trunk@13944 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm index 8881e2f7c..12e85af0c 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm @@ -302,13 +302,14 @@ sub disconnect { # ----------------------------------------------------------------------------- # commits the db session and destroys the session +# returns the status of the commit call # ----------------------------------------------------------------------------- sub commit { my $self = shift; return unless $self->{xact_id}; - $self->xact_commit; - $self->session->disconnect; - $self->{session} = undef; + my $stat = $self->xact_commit; + $self->disconnect; + return $stat; } # -----------------------------------------------------------------------------