Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
differentiate between forward and backward read stats for selectEdge
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Liang committed Jan 19, 2012
1 parent 7396220 commit 7af11d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/twitter/flockdb/EdgesService.scala
Expand Up @@ -109,7 +109,7 @@ class EdgesService(
rethrowExceptionsAsThrift {
queries.parallel(future).map { query =>
val term = query.term
Stats.incr("select-edge-graph_" + term.graphId)
Stats.incr("select-edge-graph_" + (if (term.isForward) "" else "n") + term.graphId)
val shard = forwardingManager.find(term.sourceId, term.graphId, Direction(term.isForward))
val states = if (term.states.isEmpty) List(State.Normal) else term.states

Expand Down

0 comments on commit 7af11d3

Please sign in to comment.