Skip to content

Commit afdead8

Browse files
committed
rgw: fix bucket sync thread waiting inordinate amount of time
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 <[email protected]>
1 parent 4476126 commit afdead8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/rgw_quota.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class RGWOwnerStatsCache : public RGWQuotaCache<rgw_owner> {
363363
// option, so we can assume it won't change while the RGW server
364364
// is running, so we'll handle it once before we loop
365365
double sync_interval_factor = 1.0;
366-
const uint64_t debug_interval = cct->_conf->rgw_reshard_debug_interval;
366+
const int64_t debug_interval = cct->_conf->rgw_reshard_debug_interval;
367367
if (debug_interval >= 1) {
368368
constexpr double secs_per_day = 60 * 60 * 24;
369369
sync_interval_factor = debug_interval / secs_per_day;

0 commit comments

Comments
 (0)