]> git-server-git.apps.pok.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>
Thu, 5 Sep 2019 08:50:04 +0000 (10:50 +0200)
commitc3ebaf9aac7295c2426c8cb26def2ffd148c3e7a
tree77753d24aa22ed90fa103f47fcc7cf263a2aa460
parentcfaa681249b70a96e31b425a81f28aca1dedfebf
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>
src/osd/OSDMap.h