]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/ObjectStore: fix get_data_alignment return -1 causing problem in msg header 18475/head
authorHaomai Wang <haomai@xsky.com>
Mon, 23 Oct 2017 08:25:09 +0000 (16:25 +0800)
committerHaomai Wang <haomai@xsky.com>
Mon, 23 Oct 2017 08:49:22 +0000 (16:49 +0800)
commitbfdf4387900368253902c82fdd13412829aa4ae2
tree155c7769c69ff9ff36db7e6541f47fb06b587c04
parentac643bcf86983ac82c02c2d07e0f4a013026eb5f
os/ObjectStore: fix get_data_alignment return -1 causing problem in msg header

sizeof(data_off) in ceph_msg_header is uint16_t, so -1 will be 65535. When peer
side receive MOSDRepOp message, it will allocate extra 1 byte buffer to store
nonexisted buffer.

Signed-off-by: Haomai Wang <haomai@xsky.com>
src/os/ObjectStore.h