From c7d7eae2aeb2025ef2f7a4106de754a33b4a3384 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Sat, 18 May 2013 17:04:11 +0000 Subject: [PATCH] Partial revert of r1479766 (http://svn.apache.org/viewvc?view=revision&revision=1479766). git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1484146 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/lucene/store/MockIndexOutputWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java b/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java index e5d61e0b724..0989d9e4977 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java +++ b/lucene/test-framework/src/java/org/apache/lucene/store/MockIndexOutputWrapper.java @@ -55,14 +55,14 @@ public class MockIndexOutputWrapper extends IndexOutput { 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) {