osd/ReplicatedPG: when do omapclear, it clear FLAG_OMAP at the same time.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
Jianpeng Ma 2016-03-24 17:58:31 +08:00
parent aeb8141c29
commit 53cd6420d3

View File

@ -5765,6 +5765,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
t->omap_clear(soid);
ctx->delta_stats.num_wr++;
obs.oi.clear_omap_digest();
obs.oi.clear_flag(object_info_t::FLAG_OMAP);
}
}
break;