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 <amnon@cloudius-systems.com>
This commit is contained in:
Amnon Heiman 2015-10-11 13:45:59 +03:00 committed by Pekka Enberg
parent f05c6709dd
commit 3bf092c83b
1 changed files with 2 additions and 3 deletions

View File

@ -459,8 +459,7 @@ public class StorageService extends NotificationBroadcasterSupport
MultivaluedMap<String, String> 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<String, String> queryParams = new MultivaluedMapImpl();
queryParams.add("cf", cfName);
c.post("/storage_service/sstables/", queryParams);
c.post("/storage_service/sstables/" + ksName, queryParams);
}
/**