func (zkts *Server) UpdateShard(si *topo.ShardInfo) error { shardPath := path.Join(globalKeyspacesPath, si.Keyspace(), "shards", si.ShardName()) _, err := zkts.zconn.Set(shardPath, si.Json(), -1) if err != nil { if zookeeper.IsError(err, zookeeper.ZNONODE) { err = topo.ErrNoNode } } return err }