]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix un/signed comparison warnings in rgw_sync.cc 46536/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 6 Jun 2022 16:06:19 +0000 (12:06 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 6 Jun 2022 16:06:21 +0000 (12:06 -0400)
Fixes: https://tracker.ceph.com/issues/55898
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sync.cc

index a2b388d1eae084e1ee57f37577675c6f2376670c..6fee20f8f39f92246bbd5ac0c0400c3ffcc5ef72 100644 (file)
@@ -1652,7 +1652,7 @@ public:
               pos_to_prev[marker] = marker;
             }
             // limit spawn window
-            while (num_spawned() > cct->_conf->rgw_meta_sync_spawn_window) {
+            while (num_spawned() > static_cast<size_t>(cct->_conf->rgw_meta_sync_spawn_window)) {
               yield wait_for_child();
               collect_children();
             }
@@ -1851,7 +1851,7 @@ public:
                 pos_to_prev[log_iter->id] = marker;
               }
               // limit spawn window
-              while (num_spawned() > cct->_conf->rgw_meta_sync_spawn_window) {
+              while (num_spawned() > static_cast<size_t>(cct->_conf->rgw_meta_sync_spawn_window)) {
                 yield wait_for_child();
                 collect_children();
               }