You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by cu...@apache.org on 2004/02/19 19:12:04 UTC

cvs commit: jakarta-lucene/src/java/org/apache/lucene/index IndexWriter.java

cutting     2004/02/19 10:12:04

  Modified:    src/java/org/apache/lucene/index IndexWriter.java
  Log:
  Fixed to compile w/o deprecation warnings.
  
  Revision  Changes    Path
  1.22      +1 -1      jakarta-lucene/src/java/org/apache/lucene/index/IndexWriter.java
  
  Index: IndexWriter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/IndexWriter.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- IndexWriter.java	18 Nov 2003 11:58:19 -0000	1.21
  +++ IndexWriter.java	19 Feb 2004 18:12:03 -0000	1.22
  @@ -356,7 +356,7 @@
       segmentInfos.addElement(new SegmentInfo(mergedName, docCount, directory));
   
       synchronized (directory) {			  // in- & inter-process sync
  -      new Lock.With(directory.makeLock("commit.lock")) {
  +      new Lock.With(directory.makeLock("commit.lock"), COMMIT_LOCK_TIMEOUT) {
   	  public Object doBody() throws IOException {
   	    segmentInfos.write(directory);	  // commit changes
   	    return null;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org