]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: make pool_snap_info_t encoding backward compatible
authorSage Weil <sage@inktank.com>
Mon, 29 Oct 2012 18:03:46 +0000 (11:03 -0700)
committerSage Weil <sage@inktank.com>
Mon, 29 Oct 2012 18:05:59 +0000 (11:05 -0700)
commitb9eccdf8ba100c847b3ae837e3ef247db991c49d
tree8e9aef040404a026162edd2905efd63dd549c4a2
parent2f09d47d218c78cb185dcfa8d28d33364534b6f8
osd: make pool_snap_info_t encoding backward compatible

Way back in fc869dee1e8a1c90c93cb7e678563772fb1c51fb (v0.42) when we redid
the osd type encoding we forgot to make this conditionally encode the old
format for old clients.  In particular, this means that kernel clients
will fail to decode the osdmap if there is a rados pool with a pool-level
snapshot defined.

Fixes: #3290
Signed-off-by: Sage Weil <sage@inktank.com>
src/include/encoding.h
src/osd/osd_types.cc
src/osd/osd_types.h
src/test/encoding/types.h