We can't remove this until the other 1<<46's also go.
Signed-off-by: Samuel Just <sjust@redhat.com>
#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)
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 | \
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);
}
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,
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;
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() {
PGBackend::PGTransaction *ReplicatedBackend::get_transaction()
{
- return new RPGTransaction(coll, parent->transaction_use_tbl());
+ return new RPGTransaction(coll);
}
class C_OSD_OnOpCommit : public Context {
<< ", 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());
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;
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(