mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
osd: do not increase num_object if the object has manifest
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>
This commit is contained in:
parent
02c223273d
commit
b6aa9ca674
@ -9276,7 +9276,9 @@ void PrimaryLogPG::finish_promote(int r, CopyResults *results,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user