Skip to content

Commit

Permalink
fix bug found via code review
Browse files Browse the repository at this point in the history
Auditors: jeffk
  • Loading branch information
rahulpratapm committed Aug 31, 2015
1 parent c19ecfc commit 716a68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/scala/HFileStorageService.scala
Expand Up @@ -236,7 +236,7 @@ class NameIndexHFileInput(basepath: String, shouldPreload: Boolean) {
// allow TooManyResultsException to be thrown below
val allMatches = nameIndex.lookupPrefix(name)
val allFlattened = allMatches.flatten
val numKeys = allFlattened.size
val numKeys = allMatches.size
// total number of results within limit or index wasn't built with
// features sorted by static importance, just return them all
val results = if (!featuresSortedByStaticImportance || allFlattened.size <= resultLimit) {
Expand Down

0 comments on commit 716a68b

Please sign in to comment.