]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
hobject_t: decode future hobject_t::get_min() properly
authorSage Weil <sage@redhat.com>
Mon, 3 Aug 2015 17:05:45 +0000 (13:05 -0400)
committerSamuel Just <sjust@redhat.com>
Mon, 3 Aug 2015 21:54:50 +0000 (14:54 -0700)
commit1357ed1bd0e250b942bcba0346c97c24bb79a5d1
treeb0a5f580cdd1b889de5319ce1f8f39f6f4748d45
parent6d01d6b700300841f49f288a89d514f26a4f94b1
hobject_t: decode future hobject_t::get_min() properly

The post-hammer wip-temp branch changed hobject_t::get_min() so that pool
is INT64_MIN instead of -1 and neglected to deal with the encoding compat
with older versions.  Compensate on hammer by mapping INT64_MIN to -1
locally.  See commit ff99af38df830e215359bfb8837bf310a2023a4d.

Note that this means upgrades from hammer to post-hammer *must* include
this fix prior to the upgrade.  This will need to be well-documented in the
release notes.

Master gets a similar fix so that they map our min value to the new
INT64_MIN one on decode.

Fixes: #12536 (for hammer)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/hobject.cc
src/common/hobject.h