return the status of xact_commit from the commit wrapper
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Sep 2009 20:34:20 +0000 (20:34 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 1 Sep 2009 20:34:20 +0000 (20:34 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13944 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm

index 8881e2f..12e85af 100644 (file)
@@ -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;
 }
 
 # -----------------------------------------------------------------------------