]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: cap snaptrimq_len at 2^32 21107/head
authorKefu Chai <kchai@redhat.com>
Thu, 29 Mar 2018 01:38:29 +0000 (09:38 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 29 Mar 2018 05:44:09 +0000 (13:44 +0800)
commit9ad74072221b40b58902c516b9201e337617d38c
tree552a801d80d9803449eba21c37a7cac074c5a6e7
parent7dbc67f5e03b688949b53ecbb7f57967093cfa10
osd: cap snaptrimq_len at 2^32

(uint64_t)(1 << 31) evaluates to 0xffffffff80000000 instead of 0x80000000,
because the converted signed number is sign-extended.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/osd_types.h