From d229548db500a7421309fe6c3804aa1231f144cd Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 31 Oct 2014 09:48:22 -0700 Subject: [PATCH] osd/ReplicatedPG: drop cateogry support from CREATE Signed-off-by: Sage Weil --- src/osd/ReplicatedPG.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 116f04ac1c298..28be8dd3274f5 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) -- 2.39.5