Merge pull request #1579 from ceph/wip-7907

osd/ReplicatedPG: mark_unrollbackable when _rollback_to head

Reviewed-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2014-04-02 10:35:38 -07:00
commit d6258b63e5

View File

@ -5096,6 +5096,9 @@ void ReplicatedPG::finish_ctx(OpContext *ctx, int log_op_type)
changing.insert(OI_ATTR);
changing.insert(SS_ATTR);
ctx->obc->fill_in_setattrs(changing, &(ctx->mod_desc));
} else {
// replicated pools are never rollbackable in this case
ctx->mod_desc.mark_unrollbackable();
}
} else {
dout(10) << " no snapset (this is a clone)" << dendl;