lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1484146 - /lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java
Date Sat, 18 May 2013 17:04:12 GMT
Author: jpountz
Date: Sat May 18 17:04:11 2013
New Revision: 1484146

URL: http://svn.apache.org/r1484146
Log:
Partial revert of r1479766 (http://svn.apache.org/viewvc?view=revision&revision=1479766).

Modified:
    lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java

Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java?rev=1484146&r1=1484145&r2=1484146&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java
(original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java
Sat May 18 17:04:11 2013
@@ -55,14 +55,14 @@ public class MockIndexOutputWrapper exte
     long realUsage = 0;
 
     // Enforce disk full:
-    if (dir.maxSize != 0 && freeSpace < len) {
+    if (dir.maxSize != 0 && freeSpace <= len) {
       // Compute the real disk free.  This will greatly slow
       // down our test but makes it more accurate:
       realUsage = dir.getRecomputedActualSizeInBytes();
       freeSpace = dir.maxSize - realUsage;
     }
 
-    if (dir.maxSize != 0 && freeSpace < len) {
+    if (dir.maxSize != 0 && freeSpace <= len) {
       if (freeSpace > 0) {
         realUsage += freeSpace;
         if (b != null) {



Mime
View raw message