]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
features: deprecate CEPH_FEATURE_OSD_SET_ALLOC_HINT
authorSamuel Just <sjust@redhat.com>
Mon, 14 Mar 2016 22:42:25 +0000 (15:42 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 17 Mar 2016 01:10:12 +0000 (18:10 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/include/ceph_features.h
src/osd/ReplicatedPG.cc

index b05e24f52436cc1e51d79549a9ab173a7c8e9f72..b8cce878a91e20a33f469599aab09590a331cc7f 100755 (executable)
@@ -59,7 +59,7 @@
 #define CEPH_FEATURE_MSGR_KEEPALIVE2   (1ULL<<42)
 #define CEPH_FEATURE_OSD_POOLRESEND    (1ULL<<43)
 #define CEPH_FEATURE_ERASURE_CODE_PLUGINS_V2 (1ULL<<44)
-#define CEPH_FEATURE_OSD_SET_ALLOC_HINT (1ULL<<45)
+#define DEPRECATED_CEPH_FEATURE_OSD_SET_ALLOC_HINT (1ULL<<45) // DEPRECATED: JEWEL
 #define CEPH_FEATURE_OSD_FADVISE_FLAGS (1ULL<<46)
 #define CEPH_FEATURE_OSD_REPOP         (1ULL<<46)   /* overlap with fadvise */
 #define CEPH_FEATURE_OSD_OBJECT_DIGEST  (1ULL<<46)  /* overlap with fadvise */
@@ -160,7 +160,7 @@ static inline unsigned long long ceph_sanitize_features(unsigned long long f) {
         CEPH_FEATURE_MSGR_KEEPALIVE2 | \
         CEPH_FEATURE_OSD_POOLRESEND |  \
          CEPH_FEATURE_ERASURE_CODE_PLUGINS_V2 |   \
-         CEPH_FEATURE_OSD_SET_ALLOC_HINT |   \
+         DEPRECATED_CEPH_FEATURE_OSD_SET_ALLOC_HINT |   \
         CEPH_FEATURE_OSD_FADVISE_FLAGS |     \
          CEPH_FEATURE_OSD_REPOP |   \
         CEPH_FEATURE_OSD_OBJECT_DIGEST |    \
index d2fd6e9c6874e400870df5aa149de12ad6c08e89..5631fe64e1625a0b25b124145a7e8b9bf034be8f 100644 (file)
@@ -4879,10 +4879,6 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
       ++ctx->num_write;
       {
        tracepoint(osd, do_osd_op_pre_setallochint, soid.oid.name.c_str(), soid.snap.val, op.alloc_hint.expected_object_size, op.alloc_hint.expected_write_size);
-        if (!(get_min_upacting_features() & CEPH_FEATURE_OSD_SET_ALLOC_HINT)) { 
-          result = -EOPNOTSUPP;
-          break;
-        }
        if (maybe_create_new_object(ctx)) {
           ctx->mod_desc.create();
           t->touch(soid);