mirror of https://github.com/apache/cassandra
fix countAllBatches query
patch by Lyuben Todorov; reviewed by jbellis for CASSANDRA-7300
This commit is contained in:
parent
f64dc45276
commit
3aef07dbaa
|
|
@ -99,7 +99,8 @@ public class BatchlogManager implements BatchlogManagerMBean
|
|||
|
||||
public int countAllBatches()
|
||||
{
|
||||
return (int) executeInternal("SELECT count(*) FROM %s.%s", Keyspace.SYSTEM_KS, SystemKeyspace.BATCHLOG_CF).one().getLong("count");
|
||||
String query = String.format("SELECT count(*) FROM %s.%s", Keyspace.SYSTEM_KS, SystemKeyspace.BATCHLOG_CF);
|
||||
return (int) executeInternal(query).one().getLong("count");
|
||||
}
|
||||
|
||||
public long getTotalBatchesReplayed()
|
||||
|
|
|
|||
Loading…
Reference in New Issue