From: Yehuda Sadeh Date: Fri, 18 Mar 2016 16:51:34 +0000 (-0700) Subject: cls/rgw: fix use of timespan X-Git-Tag: v10.1.0~33^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8212%2Fhead;p=ceph.git cls/rgw: fix use of timespan Need to use make_timespan() when referring to seconds. Fixes: #15181 Signed-off-by: Yehuda Sadeh --- diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index 4920d46ac100..f59658c6ce89 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -2944,7 +2944,7 @@ static int gc_update_entry(cls_method_context_t hctx, uint32_t expiration_secs, } } info.time = ceph::real_clock::now(); - info.time += timespan(expiration_secs); + info.time += make_timespan(expiration_secs); ret = gc_omap_set(hctx, GC_OBJ_NAME_INDEX, info.tag, &info); if (ret < 0) return ret;