From 3bf092c83b55afa3eaed3334e9e0200479cfbf57 Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Sun, 11 Oct 2015 13:45:59 +0300 Subject: [PATCH] StorageService: handle loadNewSStable and forceKeyspaceCleanup keyspace cleanup was changed from GET to POST and load sstable was missing the keyspace name. Signed-off-by: Amnon Heiman --- .../java/org/apache/cassandra/service/StorageService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/cassandra/service/StorageService.java b/src/main/java/org/apache/cassandra/service/StorageService.java index 5f44d86..b66bb17 100644 --- a/src/main/java/org/apache/cassandra/service/StorageService.java +++ b/src/main/java/org/apache/cassandra/service/StorageService.java @@ -459,8 +459,7 @@ public class StorageService extends NotificationBroadcasterSupport MultivaluedMap queryParams = new MultivaluedMapImpl(); APIClient.set_query_param(queryParams, "cf", APIClient.join(columnFamilies)); - return c.getIntValue( - "/storage_service/keyspace_compaction/" + keyspaceName, + return c.postInt("/storage_service/keyspace_cleanup/" + keyspaceName, queryParams); } @@ -1044,7 +1043,7 @@ public class StorageService extends NotificationBroadcasterSupport log(" loadNewSSTables(String ksName, String cfName)"); MultivaluedMap queryParams = new MultivaluedMapImpl(); queryParams.add("cf", cfName); - c.post("/storage_service/sstables/", queryParams); + c.post("/storage_service/sstables/" + ksName, queryParams); } /**