Author: toad
Date: 2008-01-28 16:56:15 +0000 (Mon, 28 Jan 2008)
New Revision: 17366
Modified:
trunk/plugins/XMLSpider/XMLSpider.java
Log:
Don't sub-split any further if we can't sub-split any further.
Up build number to 16.
Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java 2008-01-28 16:52:13 UTC (rev
17365)
+++ trunk/plugins/XMLSpider/XMLSpider.java 2008-01-28 16:56:15 UTC (rev
17366)
@@ -141,7 +141,7 @@
public Set allowedMIMETypes;
private static final int MAX_ENTRIES = 2000;
private static final long MAX_SUBINDEX_UNCOMPRESSED_SIZE =
256*1024*1024;
- private static int version = 15;
+ private static int version = 16;
private static final String pluginName = "XML spider "+version;
/**
* Gives the allowed fraction of total time spent on generating indices
with
@@ -662,7 +662,7 @@
} finally {
fos.close();
}
- if(outputFile.length() > MAX_SUBINDEX_UNCOMPRESSED_SIZE) {
+ if(outputFile.length() > MAX_SUBINDEX_UNCOMPRESSED_SIZE &&
list.size() > 1) {
outputFile.delete();
throw new TooBigIndexException();
}