ColumnFamilyStore: Use the combine API with metrics
The column family store API was changed so it would have a single API to return the snapshot size. This changes the JMX to use the same API regardless if it is called from the ColumnFamilyMetrics or from ColumnFamilyStore. Signed-off-by: Amnon Heiman <amnon@scylladb.com>
This commit is contained in:
parent
c6fc4e8340
commit
e194ca85a4
@ -691,7 +691,7 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean {
|
||||
*/
|
||||
public long trueSnapshotsSize() {
|
||||
log(" trueSnapshotsSize()");
|
||||
return c.getLongValue("column_family/snapshots_size/" + getCFName());
|
||||
return c.getLongValue("column_family/metrics/snapshots_size/" + getCFName());
|
||||
}
|
||||
|
||||
public String getKeyspace() {
|
||||
|
@ -348,7 +348,7 @@ public class ColumnFamilyMetrics {
|
||||
TimeUnit.MICROSECONDS, TimeUnit.SECONDS);
|
||||
|
||||
trueSnapshotsSize = createColumnFamilyGauge(
|
||||
"/column_family/metrics/true_snapshots_size", "SnapshotsSize");
|
||||
"/column_family/metrics/snapshots_size", "SnapshotsSize");
|
||||
rowCacheHitOutOfRange = createColumnFamilyCounter(
|
||||
"/column_family/metrics/row_cache_hit_out_of_range",
|
||||
"RowCacheHitOutOfRange");
|
||||
|
Loading…
x
Reference in New Issue
Block a user