]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix broken cap in _balance_bluefs_freespace() 21097/head
authorIgor Fedotov <ifedotov@suse.com>
Wed, 28 Mar 2018 12:55:48 +0000 (15:55 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Wed, 28 Mar 2018 12:55:48 +0000 (15:55 +0300)
commitbcc9715deb9a1128b7daeaefbfe0ad82844f31a9
tree7757154666c6059d8942e0e43fa6681ea4070e5b
parentf710466995ed03e478cc88d5dfa2c75b03ca2d27
os/bluestore: fix broken cap in _balance_bluefs_freespace()

1 << 31 is cast to signed int that results in huge value when casting to
uint64_t making min() call ineffective.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/os/bluestore/BlueStore.cc