incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [1/8] git commit: Fixing a bug when the number of records requested exceeds the amout allowed.
Date Thu, 29 May 2014 21:16:11 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/console-v2 22ac33f48 -> 7b6d5e8dc


Fixing a bug when the number of records requested exceeds the amout allowed.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/87810e18
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/87810e18
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/87810e18

Branch: refs/heads/console-v2
Commit: 87810e18222558c987a3f3af7906e18fec4a4383
Parents: 3967e15
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Sun May 18 12:11:27 2014 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Sun May 18 12:11:27 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/blur/manager/BlurQueryChecker.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/87810e18/blur-core/src/main/java/org/apache/blur/manager/BlurQueryChecker.java
----------------------------------------------------------------------
diff --git a/blur-core/src/main/java/org/apache/blur/manager/BlurQueryChecker.java b/blur-core/src/main/java/org/apache/blur/manager/BlurQueryChecker.java
index 0144b64..d16abf5 100644
--- a/blur-core/src/main/java/org/apache/blur/manager/BlurQueryChecker.java
+++ b/blur-core/src/main/java/org/apache/blur/manager/BlurQueryChecker.java
@@ -71,21 +71,21 @@ public class BlurQueryChecker {
       if (blurQuery.selector.recordOnly) {
         if (blurQuery.fetch > _maxQueryRecordFetch) {
           LOG.warn("Number of records requested to be fetched [{0}] is greater than the max
allowed [{1}]",
-              _maxQueryRecordFetch);
-          blurQuery.fetch = (int) blurQuery.minimumNumberOfResults;
+              blurQuery.fetch, _maxQueryRecordFetch);
+          blurQuery.fetch = _maxQueryRecordFetch;
         }
       } else {
         if (blurQuery.fetch > _maxQueryRowFetch) {
           LOG.warn("Number of rows requested to be fetched [{0}] is greater than the max
allowed [{1}]",
-              _maxQueryRowFetch);
-          blurQuery.fetch = (int) blurQuery.minimumNumberOfResults;
+              blurQuery.fetch, _maxQueryRowFetch);
+          blurQuery.fetch = _maxQueryRowFetch;
         }
       }
     }
     if (blurQuery.fetch > _maxQueryResultsFetch) {
       LOG.warn("Number of results requested to be fetched [{0}] is greater than the max allowed
[{1}]",
-          _maxQueryResultsFetch);
-      blurQuery.fetch = (int) blurQuery.minimumNumberOfResults;
+          blurQuery.fetch, _maxQueryResultsFetch);
+      blurQuery.fetch = _maxQueryResultsFetch;
     }
     if (blurQuery.fetch > blurQuery.minimumNumberOfResults) {
       LOG.warn(


Mime
View raw message