From f7337946d89f2cdfd6d60917585a746aa3ae40ea Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 1 Sep 2009 20:34:20 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm index 8881e2f7cc..12e85af0c2 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; } # ----------------------------------------------------------------------------- -- 2.11.0