]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix bucket sync thread waiting inordinate amount of time
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 2 Jul 2024 17:50:27 +0000 (13:50 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Tue, 2 Jul 2024 17:50:27 +0000 (13:50 -0400)
A signed value was read in as an unsigned value, so -1 was interpreted
as a very large value. This made the thread wait period in the bucket
sync thread inordinately long, preventing bucket sync and dynamic
resharding (unless values appropriate for debugging were set).

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/rgw_quota.cc

index 377e8c7470147e66eab18d12baa3920d3733c7cd..f55064ff53ffc5c1a3672dd5db0a7fc1db6cbde7 100644 (file)
@@ -363,7 +363,7 @@ class RGWOwnerStatsCache : public RGWQuotaCache<rgw_owner> {
       // option, so we can assume it won't change while the RGW server
       // is running, so we'll handle it once before we loop
       double sync_interval_factor = 1.0;
-      const uint64_t debug_interval = cct->_conf->rgw_reshard_debug_interval;
+      const int64_t debug_interval = cct->_conf->rgw_reshard_debug_interval;
       if (debug_interval >= 1) {
          constexpr double secs_per_day = 60 * 60 * 24;
          sync_interval_factor = debug_interval / secs_per_day;