]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Use `ssize` to get rid of signed compare warning
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 28 Sep 2022 23:56:50 +0000 (19:56 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 30 Sep 2022 18:51:16 +0000 (14:51 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/mon/Elector.cc

index 7a49c37901204c712b643f4d7737cd3d3a46b420..56bf829dd6e2b0fba923c85e1ca1d376ac1d644d 100644 (file)
@@ -492,7 +492,7 @@ void Elector::ping_check(int peer)
 {
   dout(20) << __func__ << " to peer " << peer << dendl;
 
-  if (peer >= mon->monmap->ranks.size()) {
+  if (peer >= ssize(mon->monmap->ranks)) {
     // Monitor no longer exists in the monmap,
     // therefore, we shouldn't ping this monitor
     // since we cannot lookup the address!