Changeset 4121


Ignore:
Timestamp:
Feb 4, 2008, 12:17:38 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #916: Base1PluginExecuter commits transaction even in case of a failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/core/net/sf/basedb/plugins/Base1PluginExecuter.java

    r4120 r4121  
    448448    finally
    449449    {
    450       if (dc != null)
    451       {
    452         dc.commit();
    453         dc.close();
    454       }
     450      if (dc != null) dc.close();
    455451    }
    456452  }
     
    731727          return;
    732728        }
     729        dc.commit();
    733730      }
    734731      finally
    735732      {
    736         if (dc != null)
    737         {
    738           dc.commit();
    739           dc.close();
    740         }
     733        if (dc != null) dc.close();
    741734      }
    742735     
     
    773766          }
    774767        }
     768        dc.commit();
    775769      }
    776770      finally
    777771      {
    778         if (dc != null)
    779         {
    780           dc.commit();
    781           dc.close();
    782         }
     772        if (dc != null) dc.close();
    783773      }
    784774      response.setDone(msg);
Note: See TracChangeset for help on using the changeset viewer.