]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
memstore: fix alignment of Page for test_pageset 7587/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 9 Feb 2016 22:42:17 +0000 (17:42 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 9 Feb 2016 22:57:15 +0000 (17:57 -0500)
commitb6574f2d638e320ceb348812007b0ff6e0a27d67
tree1ec3fa02b0d4aa9712b4e988bcc60972e26d3f3d
parent2c79a5e428598a31be935cc04557e2adf93c0cad
memstore: fix alignment of Page for test_pageset

test_pageset creates Pages with size=1, which messes up alignment of the
Page contents and leads to a bus error on arm64

Page::create() now adds padding to make sure Page is properly aligned,
and test_pageset verifies that alignment

Reported-by: Dan Mick <dmick@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/os/memstore/PageSet.h
src/test/test_pageset.cc