]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Endian fix for PGTempMap handling
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 2 Sep 2019 19:28:44 +0000 (21:28 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 2 Oct 2019 16:30:57 +0000 (18:30 +0200)
commitf85f6c12765afac95cc534f2e4d0c12acccc08f3
tree7a0cd1a838baf79c6d3eee5885a195119450f5e1
parent587ab1093e8f8c19c39ae231d1bf2c4a8ec5c6db
osd: Endian fix for PGTempMap handling

struct PGTempMap in osd/OSDMap.h tracks a number of int32_t pointers
pointing into a buffer list. But that list was generated via encode,
which means int members are bytes-swapped. Fixed by using ceph_le32
pointers instead.

Fixes (partially): https://tracker.ceph.com/issues/41605

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
(cherry picked from commit c3ebaf9aac7295c2426c8cb26def2ffd148c3e7a)
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/osd/OSDMap.h