mirror of
https://github.com/ceph/ceph
synced 2025-03-05 15:58:41 +00:00
osd/ReplicatedPG: for omapclear/omaprmkeys no neet set FLAG_OMAP.
When set omapheader/omapvals, it alreade set FLAG_OMAP. So for remove don't set again. Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
parent
ef263b3f41
commit
1f93b55d98
@ -5660,7 +5660,6 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
||||
t->omap_clear(soid);
|
||||
ctx->delta_stats.num_wr++;
|
||||
}
|
||||
obs.oi.set_flag(object_info_t::FLAG_OMAP);
|
||||
obs.oi.clear_omap_digest();
|
||||
break;
|
||||
|
||||
@ -5692,7 +5691,6 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
||||
t->omap_rmkeys(soid, to_rm_bl);
|
||||
ctx->delta_stats.num_wr++;
|
||||
}
|
||||
obs.oi.set_flag(object_info_t::FLAG_OMAP);
|
||||
obs.oi.clear_omap_digest();
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user