Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #88 from twitter/fix_select_single_counter

Fix the select-single Stat which was broken in finagle-ized flockdb
  • Loading branch information...
commit 47ff42435c29690310409fb61f4cc0c5958ad409 2 parents 48fcca1 + 3eb5549
Raghavendra Prabhu authored
View
3  src/main/scala/com/twitter/flockdb/queries/SelectCompiler.scala
@@ -19,7 +19,6 @@ package queries
import scala.collection.mutable
import com.twitter.gizzard.Stats
-import com.twitter.gizzard.util.Future
import operations.{SelectOperation, SelectOperationType}
import thrift.FlockException
@@ -84,7 +83,7 @@ class SelectCompiler(forwardingManager: ForwardingManager, intersectionConfig: c
"select-complex-"+complexity
} else {
"select" + (rv match {
- case query: WhereInQuery => if (query.sizeEstimate() == 1) "-single" else "-simple"
+ case query: WhereInQuery => if (program.head.term.get.destinationIds.get.size == 1) "-single" else "-simple"
case query: SimpleQuery => if (program.head.term.get.states.size > 1) "-multistate" else ""
})
}
Please sign in to comment.
Something went wrong with that request. Please try again.