]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
immutable_object_cache: Endian fix for HeaderHelper 30079/head
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 2 Sep 2019 19:29:26 +0000 (21:29 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 5 Sep 2019 08:50:04 +0000 (10:50 +0200)
commit9665074fcfcedb75e043d190dca06a2453a270ad
tree802dfcfb4b518cab2439403babb66958b8057ddf
parentc3ebaf9aac7295c2426c8cb26def2ffd148c3e7a
immutable_object_cache: Endian fix for HeaderHelper

struct HeaderHelper is used to overlay buffer list data, which
was generated via encode, and therefore holds integer data in
fixed little-endian format.

Thus, HeaderHelper needs to use ceph_le32 instead of uint32_t
when accessing the len field.

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

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
src/tools/immutable_object_cache/Types.h