return ret;
ldout(s->cct, 20) << "response: " << response.c_str() << dendl;
- if (!jp->parse(response.c_str(), response.length())) {
+ if (jp && !jp->parse(response.c_str(), response.length())) {
ldout(s->cct, 0) << "failed parsing response from master zonegroup" << dendl;
return -EINVAL;
}
if (!store->is_meta_master()) {
bufferlist in_data;
- JSONParser jp;
op_ret = forward_request_to_master(s, &ot.read_version, store, in_data,
- &jp);
+ NULL);
if (op_ret < 0) {
if (op_ret == -ENOENT) {
/* adjust error, we want to return with NoSuchBucket and not
if (!store->get_zonegroup().is_master) {
bufferlist in_data;
- JSONParser jp;
ret = forward_request_to_master(s, &ot.read_version, store, in_data,
- &jp);
+ NULL);
if (ret < 0) {
if (ret == -ENOENT) {
/* adjust error, we want to return with NoSuchBucket and not