return ret;
}
- ret = ioctx.application_enable("rgw_dedup", false);
+ ret = ioctx.application_enable("rgw", false);
if (ret == 0) {
ldpp_dout(dpp, 10) << __func__ << "::pool " << dedup_pool.name
<< " was associated with dedup app" << dendl;
const rgw_bucket_dir_entry &entry,
worker_stats_t *p_worker_stats /*IN-OUT*/)
{
- // ceph store full blocks so need to round up and multiply by block_size
- uint64_t ondisk_byte_size = calc_on_disk_byte_size(entry.meta.size);
- // count all objects including too small and non default storage_class objs
- p_worker_stats->ingress_obj++;
- p_worker_stats->ingress_obj_bytes += ondisk_byte_size;
-
parsed_etag_t parsed_etag;
if (unlikely(!parse_etag_string(entry.meta.etag, &parsed_etag))) {
p_worker_stats->ingress_corrupted_etag++;
- ldpp_dout(dpp, 1) << __func__ << "::ERROR: corrupted etag" << dendl;
+ ldpp_dout(dpp, 1) << __func__ << "::ERROR: corrupted etag:" << entry.meta.etag
+ << "::" << p_bucket->get_name() << "/" << entry.key.name << dendl;
return -EINVAL;
}
show_ingress_bucket_idx_obj(dpp, parsed_etag, p_bucket->get_name(), entry.key.name);
}
+ // ceph store full blocks so need to round up and multiply by block_size
+ uint64_t ondisk_byte_size = calc_on_disk_byte_size(entry.meta.size);
+ // count all objects including too small and non default storage_class objs
+ p_worker_stats->ingress_obj++;
+ p_worker_stats->ingress_obj_bytes += ondisk_byte_size;
+
// We limit dedup to objects from the same storage_class
// TBD:
// Should we use a skip-list of storage_classes we should skip (like glacier) ?
f->dump_unsigned("non default storage class objs bytes",
this->non_default_storage_class_objs_bytes);
}
- else {
- ceph_assert(this->default_storage_class_objs == this->ingress_obj);
- ceph_assert(this->default_storage_class_objs_bytes == this->ingress_obj_bytes);
+ else {
+ if (this->default_storage_class_objs != this->ingress_obj) {
+ f->dump_unsigned("Bad default storage class objs (should be identical to ingress_obj)",
+ this->default_storage_class_objs);
+ }
+ if (this->default_storage_class_objs_bytes != this->ingress_obj_bytes) {
+ f->dump_unsigned("Bad default storage class objs bytes (should be identical to ingress_obj_bytes)",
+ this->default_storage_class_objs_bytes);
+ }
}
}