]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: remove magical tmap -> omap conversion
authorSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 21:21:40 +0000 (14:21 -0700)
committerSage Weil <sage@inktank.com>
Wed, 2 Oct 2013 00:21:21 +0000 (17:21 -0700)
commita9e5323586b5a3771a045c335f7b31cc912c7fe7
tree856386004435fa4fb7ced1d39cb1301a3030fec1
parent1db0a572c193d207162da54afe645b7850d2cc2c
osd: remove magical tmap -> omap conversion

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>
PendingReleaseNotes
src/common/config_opts.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/osd_types.h