In the case of redirected and chunked object, base tier
has metadata (same as existing object but, size is zero)
so do not need to update num_object
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
OpContextUPtr tctx = simple_opc_create(obc);
tctx->at_version = get_next_version();
- ++tctx->delta_stats.num_objects;
+ if (!obc->obs.oi.has_manifest()) {
+ ++tctx->delta_stats.num_objects;
+ }
if (soid.snap < CEPH_NOSNAP)
++tctx->delta_stats.num_object_clones;
tctx->new_obs.exists = true;