From fab2144c955562bcf8d7e9c57d8db04fbbe4a7bf Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 18 Mar 2016 09:51:34 -0700 Subject: [PATCH] cls/rgw: fix use of timespan Need to use make_timespan() when referring to seconds. Fixes: #15181 Signed-off-by: Yehuda Sadeh --- src/cls/rgw/cls_rgw.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3