Skip to content

Commit

Permalink
Fix the select-single Stat which was broken in finagle-ized flockdb
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghavendra Prabhu committed Apr 2, 2012
1 parent be69af8 commit 3eb5549
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 ""
})
}
Expand Down

0 comments on commit 3eb5549

Please sign in to comment.