From 71590fd1173114f58c38218aa7beeade3a06f8d8 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Mon, 6 Jun 2022 12:06:19 -0400 Subject: [PATCH] rgw: fix un/signed comparison warnings in rgw_sync.cc Fixes: https://tracker.ceph.com/issues/55898 Signed-off-by: Casey Bodley --- src/rgw/rgw_sync.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index a2b388d1eae08..6fee20f8f39f9 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(); } -- 2.39.5