Subversion Repositories DevTools

Rev

Rev 904 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 904 Rev 906
Line 4043... Line 4043...
4043
        try
4043
        try
4044
        {
4044
        {
4045
          if ( mConnection == null || ( mConnection != null && !mConnection.isValid(10) ) )
4045
          if ( mConnection == null || ( mConnection != null && !mConnection.isValid(10) ) )
4046
          {
4046
          {
4047
            mLogger.warn("connect calling getConnection");
4047
            mLogger.warn("connect calling getConnection");
4048
            mConnection = DriverManager.getConnection(mConnectionString, mUsername + "[release_manager]", mPassword);
4048
            mConnection = DriverManager.getConnection(mConnectionString, mUsername, mPassword);
4049
            // when connection to the database is established, the connection, by default, is in auto-commit mode
4049
            // when connection to the database is established, the connection, by default, is in auto-commit mode
4050
            // to adhere to the design in the use of select for update, it is crucial to turn auto-commit off
4050
            // to adhere to the design in the use of select for update, it is crucial to turn auto-commit off
4051
            // this also improves performance
4051
            // this also improves performance
4052
            mConnection.setAutoCommit(false);
4052
            mConnection.setAutoCommit(false);
4053
          }
4053
          }
Line 4755... Line 4755...
4755
          
4755
          
4756
          current_run_level = rset.getInt("current_run_level");
4756
          current_run_level = rset.getInt("current_run_level");
4757
 
4757
 
4758
          if ( rset.wasNull() )
4758
          if ( rset.wasNull() )
4759
          {
4759
          {
4760
            mLogger.fatal("queryRunLevel 2 null current_run_level");
4760
            // slave may never have started to insert run level
4761
            // show stopper
4761
            // use idle
4762
            throw new Exception("queryRunLevel 2 null current_run_level");
4762
            current_run_level = DB_IDLE;
4763
          }
4763
          }
4764
          
4764
          
4765
          RunLevel runLevel = new RunLevel(rcon_id, "", current_run_level, false);
4765
          RunLevel runLevel = new RunLevel(rcon_id, "", current_run_level, false);
4766
          mRunLevelCollection.add(runLevel);
4766
          mRunLevelCollection.add(runLevel);
4767
        }
4767
        }