]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedBackend: cast variable to unsigned before comparing 40909/head
authorKefu Chai <kchai@redhat.com>
Mon, 19 Apr 2021 10:03:13 +0000 (18:03 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 19 Apr 2021 10:04:47 +0000 (18:04 +0800)
commit1392b40ba27958054de8480aab81c3103d49fe97
treef7ef8300ed101ad9cc64436c3a6ce646f1c3a093
parentf415cec292fa59a99201fc09e47bb472c4d534be
osd/ReplicatedBackend: cast variable to unsigned before comparing

after the yaml-to-cxx migration, osd_deep_scrub_stride is an OPT_SIZE,
and is hence represented with an uint64. so we need to cast `r` to
uint64_t before comparing it with this setting for silencing GCC
warning.

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