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>
// 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;