]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: do not cast min_alloc_size to int64_t
authorKefu Chai <kchai@redhat.com>
Wed, 14 Apr 2021 03:25:17 +0000 (11:25 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Apr 2021 04:37:44 +0000 (12:37 +0800)
as the left-hand operator will be an unsigned integer after the
yaml-to-cxx migration.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/BlueStore.cc

index 5081da22d30537d23886d0d9927271671094b33a..34270974fb5d40e661c88a169c78547b5d68b222 100644 (file)
@@ -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()) {