lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject [16/21] lucene-solr git commit: move verbosity to the right place
Date Sun, 07 Feb 2016 19:45:53 GMT
move verbosity to the right place


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/e0ba1e5b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e0ba1e5b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e0ba1e5b

Branch: refs/heads/jira/lucene-5438-nrt-replication
Commit: e0ba1e5bffb304dbb1196782851cf143ec995e97
Parents: 8e8aa08
Author: Mike McCandless <mikemccand@apache.org>
Authored: Sun Feb 7 09:26:23 2016 -0500
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Sun Feb 7 09:26:23 2016 -0500

----------------------------------------------------------------------
 .../src/java/org/apache/lucene/store/MockDirectoryWrapper.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e0ba1e5b/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
----------------------------------------------------------------------
diff --git a/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
b/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
index 68bacbd..515f012 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java
@@ -726,11 +726,11 @@ public class MockDirectoryWrapper extends BaseDirectoryWrapper {
       randomIOExceptionRateOnOpen = 0.0;
 
       if ((getCheckIndexOnClose() || assertNoUnreferencedFilesOnClose) && DirectoryReader.indexExists(this))
{
-        if (LuceneTestCase.VERBOSE) {
-          System.out.println("\nNOTE: MockDirectoryWrapper: now crush");
-        }
         if (getCheckIndexOnClose()) {
 
+          if (LuceneTestCase.VERBOSE) {
+            System.out.println("\nNOTE: MockDirectoryWrapper: now crush");
+          }
           crash(); // corrupt any unsynced-files
           if (LuceneTestCase.VERBOSE) {
             System.out.println("\nNOTE: MockDirectoryWrapper: now run CheckIndex");


Mime
View raw message