Skip to content

Commit

Permalink
Add back error case if trace is too big
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Hu committed Aug 2, 2012
1 parent 8755d09 commit 96a4df4
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,16 @@ trait CassandraStorage extends Storage with Cassandra {
}

spans.toSeq match {
case Nil => None
case s => Some(s)
case Nil => {
None
}
case s if s.length > TRACE_MAX_COLS => {
CASSANDRA_GET_TRACE_TOO_BIG.incr()
None
}
case s => {
Some(s)
}
}
}
}
Expand Down

0 comments on commit 96a4df4

Please sign in to comment.