From 0a6725bd5440cc1b2decb8901e8da0c8e33989d9 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Tue, 20 Mar 2018 09:28:24 +0100 Subject: [PATCH] osd: fix s390x build failure 46de629c3d0bfae5eba3f6b810808938b5a9af1f introduced a regression: on big-endian machines, there was no matching function for call to 'eversion_t::encode(const version_t&, ceph::bufferlist&) const' and 'eversion_t::decode(version_t&, ceph::buffer::list::iterator&)' Fixes: http://tracker.ceph.com/issues/23238 Signed-off-by: Nathan Cutler --- src/osd/osd_types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/osd_types.h b/src/osd/osd_types.h index a2bdacb23e70b..bf18c00e9044f 100644 --- a/src/osd/osd_types.h +++ b/src/osd/osd_types.h @@ -821,6 +821,7 @@ public: #if defined(CEPH_LITTLE_ENDIAN) bl.append((char *)this, sizeof(version_t) + sizeof(epoch_t)); #else + using ceph::encode; encode(version, bl); encode(epoch, bl); #endif @@ -829,6 +830,7 @@ public: #if defined(CEPH_LITTLE_ENDIAN) bl.copy(sizeof(version_t) + sizeof(epoch_t), (char *)this); #else + using ceph::decode; decode(version, bl); decode(epoch, bl); #endif -- 2.39.5