lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r770605 - /lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestDeletionPolicy.java
Date Fri, 01 May 2009 10:09:08 GMT
Author: mikemccand
Date: Fri May  1 10:09:08 2009
New Revision: 770605

URL: http://svn.apache.org/viewvc?rev=770605&view=rev
Log:
LUCENE-1624: don't write a new empty commit when create=true and autoCommit=false on creating
IndexWriter, unless dir has no index yet

Modified:
    lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestDeletionPolicy.java

Modified: lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestDeletionPolicy.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestDeletionPolicy.java?rev=770605&r1=770604&r2=770605&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestDeletionPolicy.java
(original)
+++ lucene/java/branches/lucene_2_4_back_compat_tests/src/test/org/apache/lucene/index/TestDeletionPolicy.java
Fri May  1 10:09:08 2009
@@ -702,7 +702,7 @@
 
       assertEquals(1+3*(N+1), policy.numOnInit);
       if (!autoCommit)
-        assertEquals(2*(N+1), policy.numOnCommit);
+        assertEquals(3*(N+1), policy.numOnCommit);
 
       IndexSearcher searcher = new IndexSearcher(dir);
       ScoreDoc[] hits = searcher.search(query, null, 1000).scoreDocs;



Mime
View raw message