netudima commented on code in PR #4841:
URL: https://github.com/apache/cassandra/pull/4841#discussion_r3323779324


##########
src/java/org/apache/cassandra/db/Keyspace.java:
##########
@@ -577,6 +577,8 @@ else if (isDeferrable)
                 }
 
                 cfs.getWriteHandler().write(upd, ctx, updateIndexes);
+                int rowCount = upd.affectedRowCount();
+                cfs.metric.rowsMutated.inc(rowCount);

Review Comment:
   org.apache.cassandra.db.ColumnFamilyStore#apply looks like a better place 
for this metric increment, next to metric.writeLatency.addNano(nanoTime() - 
start);



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to