Skip to content

Commit c5d6a36

Browse files
Expose StorageService.dropPreparedStatements via JMX
Patch by Paulo Motta; Reviewed by Dmitry Konstantinov, Jeremiah Jordan for CASSANDRA-20870
1 parent decd51e commit c5d6a36

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
5.0.6
2+
* Expose StorageService.dropPreparedStatements via JMX (CASSANDRA-20870)
23
* Sort SSTable TOC entries for determinism (CASSANDRA-20494)
34
Merged from 4.0:
45
* Update Jackson to 2.19.2 (CASSANDRA-20848)

src/java/org/apache/cassandra/service/StorageService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4242,6 +4242,7 @@ public List<Pair<String, String>> getPreparedStatements()
42424242
return statements;
42434243
}
42444244

4245+
@Override
42454246
public void dropPreparedStatements(boolean memoryOnly)
42464247
{
42474248
QueryProcessor.instance.clearPreparedStatements(memoryOnly);

src/java/org/apache/cassandra/service/StorageServiceMBean.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,4 +1326,6 @@ public void enableAuditLog(String loggerName, String includedKeyspaces, String e
13261326
void setPaxosRepairRaceWait(boolean paxosRepairCoordinatorWait);
13271327

13281328
boolean getPaxosRepairRaceWait();
1329+
1330+
public void dropPreparedStatements(boolean memoryOnly);
13291331
}

0 commit comments

Comments
 (0)