this was trying to decode a 'uint64_t instance_id' into the wrong
variable 'uint32_t num_shards'
datalog trimming relies on this json format, and decode failures here
prevent any trimming from taking place
Fixes: http://tracker.ceph.com/issues/38373
Signed-off-by: Casey Bodley <cbodley@redhat.com>
state = StateInit;
}
JSONDecoder::decode_json("num_shards", num_shards, obj);
- JSONDecoder::decode_json("instance_id", num_shards, obj);
+ JSONDecoder::decode_json("instance_id", instance_id, obj);
}
static void generate_test_instances(std::list<rgw_data_sync_info*>& o);