]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: use uint64 for return value of size() 41042/head
authorKefu Chai <kchai@redhat.com>
Tue, 27 Apr 2021 12:37:32 +0000 (20:37 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 28 Apr 2021 11:39:43 +0000 (19:39 +0800)
commitef12761bdb03f99aa45ba091bd66a1ab3228c5a2
tree2482748249158ef37ca30014824b3ffc5b958e2b
parentb26a50827d22f43328e6bae764dcd5c5e32ff7be
librbd: use uint64 for return value of size()

size_t is not necessarily an alias of uint64_t, so template argument
deduction would fail if we use `std::min(m_object_map.size(),
prev_object_diff_state_size)`. so better off using the same type for lhs
and rhs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/librbd/object_map/DiffRequest.cc