Add database as part of the API

pull/743/head
Paul Dix 2014-07-11 15:30:18 -04:00
parent 04ce6a26a4
commit b4eb6b74bd
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ func (self *Client) DropShardSpace(database, name string) error {
// Added to InfluxDB in 0.8.0
func (self *Client) CreateShardSpace(space *ShardSpace) error {
url := self.getUrl("/cluster/shard_spaces")
url := self.getUrl(fmt.Sprintf("/cluster/shard_spaces/%s", space.Database))
data, err := json.Marshal(space)
if err != nil {
return err