From: Casey Bodley Date: Mon, 6 Jun 2022 16:06:19 +0000 (-0400) Subject: rgw: fix un/signed comparison warnings in rgw_sync.cc X-Git-Tag: v18.0.0~765^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71590fd1173114f58c38218aa7beeade3a06f8d8;p=ceph.git rgw: fix un/signed comparison warnings in rgw_sync.cc Fixes: https://tracker.ceph.com/issues/55898 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index a2b388d1eae0..6fee20f8f39f 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -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(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(cct->_conf->rgw_meta_sync_spawn_window)) { yield wait_for_child(); collect_children(); }