This way we always return a safe upper bound on the amount of time
since we did a check. Among other things, this prevents us from
returning a value of 0, which is confusing.
Fixes: http://tracker.ceph.com/issues/15760
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
2e2ce365866a7569b55aff338a82c132aa927089)
Conflicts:
src/osdc/Objecter.cc
By https://github.com/ceph/ceph/pull/8967, simply add 1 to return vaule.
<< " age " << age << dendl;
if (info->last_error)
return info->last_error;
- return age.to_msec();
+ // return a safe upper bound (we are truncating to ms)
+ return 1 + age.to_msec();
}
void Objecter::linger_cancel(LingerOp *info)