]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushWrapper.cc: Fix sign compare compiler warning 31184/head
authorPrashant D <pdhange@redhat.com>
Mon, 28 Oct 2019 06:03:21 +0000 (02:03 -0400)
committerPrashant D <pdhange@redhat.com>
Fri, 1 Nov 2019 05:50:36 +0000 (01:50 -0400)
introduced by 712a39e5c9d

Signed-off-by: Prashant D <pdhange@redhat.com>
src/crush/CrushWrapper.cc

index d4601cddbd1c54f8c1842eb4f15ef88083d76cfd..9f68491c657a0572f9a8b531efdfe357a62a659c 100644 (file)
@@ -932,7 +932,7 @@ int CrushWrapper::verify_upmap(CephContext *cct,
     return -ENOENT;
   }
   int root_bucket = 0;
-  int cursor = 0;
+  size_t cursor = 0;
   for (unsigned step = 0; step < rule->len; ++step) {
     auto curstep = &rule->steps[step];
     ldout(cct, 10) << __func__ << " step " << step << dendl;