diff options
author | Sage Weil <sage@inktank.com> | 2013-10-01 13:43:02 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-10-01 13:43:02 -0700 |
commit | f17432b90282cb971680af67ebeec108c42534f4 (patch) | |
tree | 47ecc63f661bc0d7b1f007358cded8cd37b1c8d0 /src/osd/ReplicatedPG.h | |
parent | a2fc66793f66d359bdb93549acd6aad0893ac5ce (diff) | |
download | ceph-wip-tmap.tar.gz |
osd: remove magical tmap -> omap conversionwip-tmap
This is incomplete and unfortunately unusable in its current state:
- it would only set USES_TMAP for old encoded object_info_t and tmapput,
but would NOT set it for tmapup
- a config option turned that off by default.
That means that the mds conversion from tmap -> omap won't be able to use
this because any existing cluster has tmap objects without the USES_TMAP
flag set. And we don't want to unconditionally try a tmap->omap conversion
on omap operations because there are lots of existing librados users out
there that will be negatively impacted by this.
Instead, the MDS will need to handle this conversion on the client side by
reading either tmap or omap objects and explicitly rewriting the content
with omap (while truncating the tmap data away).
The auto-conversion function was added in v0.44.
Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'src/osd/ReplicatedPG.h')
-rw-r--r-- | src/osd/ReplicatedPG.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index abee57ffe7d..83fd9fd1889 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -855,7 +855,6 @@ private: int _get_tmap(OpContext *ctx, map<string, bufferlist> *out, bufferlist *header); - int _copy_up_tmap(OpContext *ctx); int _delete_head(OpContext *ctx); int _rollback_to(OpContext *ctx, ceph_osd_op& op); public: |