From: Sage Weil Date: Fri, 31 Oct 2014 16:48:22 +0000 (-0700) Subject: osd/ReplicatedPG: drop cateogry support from CREATE X-Git-Tag: v0.91~162^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d229548db500a7421309fe6c3804aa1231f144cd;p=ceph.git osd/ReplicatedPG: drop cateogry support from CREATE Signed-off-by: Sage Weil --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 116f04ac1c29..28be8dd3274f 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -4166,14 +4166,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector& ops) result = -EINVAL; goto fail; } - if (category.size()) { - if (obs.exists && !oi.is_whiteout()) { - if (obs.oi.category != category) - result = -EEXIST; // category cannot be reset - } else { - obs.oi.category = category; - } - } + // category is no longer implemented. } if (result >= 0) { if (!obs.exists)