From: <dm...@us...> - 2010-10-27 10:27:28
|
Revision: 3847 http://bigdata.svn.sourceforge.net/bigdata/?rev=3847&view=rev Author: dmacgbr Date: 2010-10-27 10:27:22 +0000 (Wed, 27 Oct 2010) Log Message: ----------- Remove trap for zero partition count within 'estimateCost(...)' Modified Paths: -------------- branches/QUADS_QUERY_BRANCH/bigdata/src/java/com/bigdata/relation/accesspath/AccessPath.java Modified: branches/QUADS_QUERY_BRANCH/bigdata/src/java/com/bigdata/relation/accesspath/AccessPath.java =================================================================== --- branches/QUADS_QUERY_BRANCH/bigdata/src/java/com/bigdata/relation/accesspath/AccessPath.java 2010-10-26 16:31:54 UTC (rev 3846) +++ branches/QUADS_QUERY_BRANCH/bigdata/src/java/com/bigdata/relation/accesspath/AccessPath.java 2010-10-27 10:27:22 UTC (rev 3847) @@ -71,7 +71,6 @@ import com.bigdata.mdi.IMetadataIndex; import com.bigdata.mdi.LocalPartitionMetadata; import com.bigdata.rawstore.Bytes; -import com.bigdata.relation.AbstractRelation; import com.bigdata.relation.AbstractResource; import com.bigdata.relation.IRelation; import com.bigdata.service.AbstractClient; @@ -1583,15 +1582,15 @@ if (partitionCount == 0) { -// /* -// * SWAG in case zero partition count is reported (I am not sure that -// * this code path is possible). -// */ -// return new ScanCostReport(0L/* rangeCount */, partitionCount, 100/* millis */); + /* + * SWAG in case zero partition count is reported (I am not sure that + * this code path is possible). + */ + return new ScanCostReport(0L/* rangeCount */, partitionCount, 100/* millis */); /* * Should never be "zero" partition count. */ - throw new AssertionError(); +// throw new AssertionError(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |