Restore support for decay time of -1 (no decay).

This commit is contained in:
Jason Evans 2016-03-03 01:43:36 +00:00
parent ecdff8fa76
commit cbc3697dda

View File

@ -1352,7 +1352,11 @@ static bool
arena_decay_time_valid(ssize_t decay_time)
{
return (decay_time >= -1 && (uint64_t)decay_time <= NSTIME_SEC_MAX);
if (decay_time < -1)
return (false);
if (decay_time == -1 || (uint64_t)decay_time <= NSTIME_SEC_MAX)
return (true);
return (false);
}
ssize_t