From 98f0617bd6262e5f6750b88b8f964415e54e56b4 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 14 Apr 2021 11:25:17 +0800 Subject: [PATCH] os/bluestore: do not cast min_alloc_size to int64_t as the left-hand operator will be an unsigned integer after the yaml-to-cxx migration. Signed-off-by: Kefu Chai --- src/os/bluestore/BlueStore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 5081da22d30..34270974fb5 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -5292,7 +5292,7 @@ int BlueStore::_open_fm(KeyValueDB::Transaction t, bool read_only) } // being able to allocate in units less than bdev block size // seems to be a bad idea. - ceph_assert( cct->_conf->bdev_block_size <= (int64_t)min_alloc_size); + ceph_assert(cct->_conf->bdev_block_size <= min_alloc_size); uint64_t alloc_size = min_alloc_size; if (bdev->is_smr()) { -- 2.39.5