svn commit: r532920 - /xml/xindice/trunk/java/src/org/apache/xindice/tools/DatabaseRebuild.java

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Author: vgritsenko
Date: Thu Apr 26 17:22:08 2007
New Revision: 532920

URL: http://svn.apache.org/viewvc?view=rev&rev=532920
Log:
fix log message

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/tools/DatabaseRebuild.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/tools/DatabaseRebuild.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/tools/DatabaseRebuild.java?view=diff&rev=532920&r1=532919&r2=532920
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/tools/DatabaseRebuild.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/tools/DatabaseRebuild.java Thu Apr 26 17:22:08 2007
@@ -190,17 +190,24 @@
         }
 
         // prepare
+        Filer itsFiler = col.getFiler();
         FilerCopy oldFiler;
         FilerCopy newFiler;
-        if (col.getFiler() instanceof BTreeFiler) {
+        if (itsFiler == null) {
+            if (log.isInfoEnabled()) {
+                log.info("Collection " + col.getCanonicalName() + " has no filer. Skipping...");
+            }
+
+            return true;
+        } if (itsFiler instanceof BTreeFiler) {
             oldFiler = new BTreeCopy();
             newFiler = new BTreeCopy();
-        } else if (col.getFiler() instanceof HashFiler) {
+        } else if (itsFiler instanceof HashFiler) {
             oldFiler = new HashCopy();
             newFiler = new HashCopy();
         } else {
             if (log.isInfoEnabled()) {
-                log.info("Filer for collection " + col.getCanonicalName() + " is neither BTreeFiler nor HashFiler. Skipping...");
+                log.info("Collection " + col.getCanonicalName() + " has unrecognized filer '" + itsFiler.getClass().getName() + "'. Skipping...");
             }
 
             return true;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.