Subversion Repositories DevTools

Rev

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

Rev 910 Rev 918
Line 175... Line 175...
175
   * plans new build file content
175
   * plans new build file content
176
   */
176
   */
177
  public void planRelease() throws SQLException, Exception
177
  public void planRelease() throws SQLException, Exception
178
  {
178
  {
179
    mLogger.warn("planRelease mDaemon " + mDaemon);
179
    mLogger.warn("planRelease mDaemon " + mDaemon);
-
 
180
    boolean highProbabilityBuildRequirement = true;
-
 
181
    
-
 
182
    if ( mAddendum.compareTo("dummy") == 0 )
-
 
183
    {
-
 
184
      // the last planning session had no build requirement
-
 
185
      highProbabilityBuildRequirement = false;
-
 
186
    }
-
 
187
    
180
    mAddendum = "dummy";
188
    mAddendum = "dummy";
181
    mBuildCollection.removeAllElements();
189
    mBuildCollection.removeAllElements();
182
    mPackageCollection.removeAllElements();
190
    mPackageCollection.removeAllElements();
183
    mReleasedPvIDCollection.removeAllElements();
191
    mReleasedPvIDCollection.removeAllElements();
184
    
192
    
Line 188... Line 196...
188
    }
196
    }
189
 
197
 
190
    // use finally block in planRelease to ensure releaseMutex is called
198
    // use finally block in planRelease to ensure releaseMutex is called
191
    try
199
    try
192
    {
200
    {
193
      mReleaseManager.connect();
201
      mReleaseManager.connectForPlanning(highProbabilityBuildRequirement);
194
 
202
 
195
      if ( mDaemon )
203
      if ( mDaemon )
196
      {
204
      {
197
        // claim the mutex
205
        // claim the mutex
198
        mReleaseManager.claimMutex();
206
        mReleaseManager.claimMutex();
Line 930... Line 938...
930
        // as the SELECT FOR UPDATE will have been released upon disconnection
938
        // as the SELECT FOR UPDATE will have been released upon disconnection
931
        mReleaseManager.releaseMutex();
939
        mReleaseManager.releaseMutex();
932
      }
940
      }
933
      
941
      
934
      // ensure disconnect
942
      // ensure disconnect
935
      mReleaseManager.disconnect();
943
      mReleaseManager.disconnectForPlanning(highProbabilityBuildRequirement);
936
    }
944
    }
937
 
945
 
938
    mLogger.warn("planRelease mDaemon " + mDaemon + " returned");
946
    mLogger.warn("planRelease mDaemon " + mDaemon + " returned");
939
  }
947
  }
940
 
948