Skip to content

Commit

Permalink
memandra metrics : add L2 C* batch metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Barthelemy Vessemont committed Mar 12, 2018
1 parent 03c2364 commit 7678326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers/cassandra/cassandra.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func bufferSizeCheckLoop() {
}

func flushBuffer() {
metrics.IncCounter(MetricCmdSetL2Batch)
/* if singleton.isFlushing {
return
}
Expand All @@ -66,6 +65,8 @@ func flushBuffer() {
chanLen := len(singleton.setbuffer)

if chanLen > 0 {
metrics.IncCounter(MetricCmdSetL2Batch)

// fmt.Println(chanLen)
if chanLen >= viper.GetInt("CassandraBatchMaxItemSize") {
chanLen = viper.GetInt("CassandraBatchMaxItemSize")
Expand Down

0 comments on commit 7678326

Please sign in to comment.