]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
features: deprecate CEPH_FEATURE_OSD_TRANSACTION_MAY_LAYOUT
authorSamuel Just <sjust@redhat.com>
Mon, 14 Mar 2016 23:00:52 +0000 (16:00 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 17 Mar 2016 01:10:13 +0000 (18:10 -0700)
We can't remove this until the other 1<<46's also go.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/include/ceph_features.h
src/osd/ECBackend.cc
src/osd/PGBackend.h
src/osd/ReplicatedBackend.cc
src/osd/ReplicatedPG.h

index fa0c91c5dc801456c41516b041505eb3e819c74b..a5f2b96257cf76550c4fcd2c29bfcc78c89bb706 100755 (executable)
@@ -63,7 +63,7 @@
 #define CEPH_FEATURE_OSD_FADVISE_FLAGS (1ULL<<46)
 #define DEPRECATED_CEPH_FEATURE_OSD_REPOP         (1ULL<<46) // DEPRECATED: JEWEL (can't remove until all 1<<46 are ready)
 #define DEPRECATED_CEPH_FEATURE_OSD_OBJECT_DIGEST  (1ULL<<46) // DEPRECATED: JEWEL (can't remove until all 1<<46 are ready)
-#define CEPH_FEATURE_OSD_TRANSACTION_MAY_LAYOUT (1ULL<<46) /* overlap w/ fadvise */
+#define DEPRECATED_CEPH_FEATURE_OSD_TRANSACTION_MAY_LAYOUT (1ULL<<46) // DEPRECATED: JEWEL (can't remove until all 1<<46 are ready)
 #define CEPH_FEATURE_MDS_QUOTA      (1ULL<<47)
 #define CEPH_FEATURE_CRUSH_V4      (1ULL<<48)  /* straw2 buckets */
 #define CEPH_FEATURE_OSD_MIN_SIZE_RECOVERY (1ULL<<49)
@@ -164,7 +164,7 @@ static inline unsigned long long ceph_sanitize_features(unsigned long long f) {
         CEPH_FEATURE_OSD_FADVISE_FLAGS |     \
          DEPRECATED_CEPH_FEATURE_OSD_REPOP |   \
         DEPRECATED_CEPH_FEATURE_OSD_OBJECT_DIGEST      |    \
-         CEPH_FEATURE_OSD_TRANSACTION_MAY_LAYOUT |   \
+         DEPRECATED_CEPH_FEATURE_OSD_TRANSACTION_MAY_LAYOUT |   \
         CEPH_FEATURE_MDS_QUOTA | \
          CEPH_FEATURE_CRUSH_V4 |            \
          CEPH_FEATURE_OSD_MIN_SIZE_RECOVERY |           \
index ff44a6930455850d76efac57fbfd0f86e62153fb..975c49b8d90bfaa0202465eb26231867c245f37f 100644 (file)
@@ -835,7 +835,6 @@ void ECBackend::handle_sub_write(
   if (!get_parent()->pgb_is_primary())
     get_parent()->update_stats(op.stats);
   ObjectStore::Transaction localt;
-  localt.set_use_tbl(op.t.get_use_tbl());
   if (!op.temp_added.empty()) {
     add_temp_objs(op.temp_added);
   }
@@ -1778,10 +1777,8 @@ void ECBackend::start_write(Op *op) {
        i != get_parent()->get_actingbackfill_shards().end();
        ++i) {
     trans[i->shard];
-    trans[i->shard].set_use_tbl(parent->transaction_use_tbl());
   }
   ObjectStore::Transaction empty;
-  empty.set_use_tbl(parent->transaction_use_tbl());
 
   op->t->generate_transactions(
     op->unstable_hash_infos,
index 48ff1d9156fb86d8f6c8815b389dc933ee317840..f88c1a08af76441a523760c933d6bfed156eeb0f 100644 (file)
@@ -215,7 +215,6 @@ struct shard_info_wrapper;
      virtual uint64_t min_peer_features() const = 0;
      virtual bool sort_bitwise() const = 0;
 
-     virtual bool transaction_use_tbl() = 0;
      virtual hobject_t get_temp_recovery_object(eversion_t version,
                                                snapid_t snap) = 0;
 
index 9d99356b6cb68bae6df9a772bf651895a8341b5f..5c6d5e834bcd2f0736c53ad87ad999b8b5124614 100644 (file)
@@ -328,10 +328,8 @@ class RPGTransaction : public PGBackend::PGTransaction {
     return coll;
   }
 public:
-  RPGTransaction(coll_t coll, bool use_tbl)
-    : coll(coll), written(0) {
-    t.set_use_tbl(use_tbl);
-  }
+  RPGTransaction(coll_t coll)
+    : coll(coll), written(0) {}
 
   /// Yields ownership of contained transaction
   ObjectStore::Transaction&& get_transaction() {
@@ -517,7 +515,7 @@ public:
 
 PGBackend::PGTransaction *ReplicatedBackend::get_transaction()
 {
-  return new RPGTransaction(coll, parent->transaction_use_tbl());
+  return new RPGTransaction(coll);
 }
 
 class C_OSD_OnOpCommit : public Context {
@@ -1009,7 +1007,6 @@ Message * ReplicatedBackend::generate_subop(
             << ", pinfo.last_backfill "
             << pinfo.last_backfill << ")" << dendl;
     ObjectStore::Transaction t;
-    t.set_use_tbl(op_t.get_use_tbl());
     ::encode(t, wr->get_data());
   } else {
     ::encode(op_t, wr->get_data());
@@ -1123,7 +1120,6 @@ void ReplicatedBackend::sub_op_modify(OpRequestRef op)
 
   bufferlist::iterator p = m->get_data().begin();
   ::decode(rm->opt, p);
-  rm->localt.set_use_tbl(rm->opt.get_use_tbl());
 
   if (m->new_temp_oid != hobject_t()) {
     dout(20) << __func__ << " start tracking temp " << m->new_temp_oid << dendl;
index 3d24617e8d9b77d0f019b15ea497c28ad18e6728..5384f2dd200a354e19ca49c22865320f62635dcf 100644 (file)
@@ -451,11 +451,6 @@ public:
     return get_sort_bitwise();
   }
 
-  bool transaction_use_tbl() {
-    uint64_t min_features = get_min_upacting_features();
-    return !(min_features & CEPH_FEATURE_OSD_TRANSACTION_MAY_LAYOUT);
-  }
-
   void send_message_osd_cluster(
     int peer, Message *m, epoch_t from_epoch);
   void send_message_osd_cluster(