]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/rgw: fix use of timespan 8212/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 18 Mar 2016 16:51:34 +0000 (09:51 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 18 Mar 2016 16:53:21 +0000 (09:53 -0700)
Need to use make_timespan() when referring to seconds.

Fixes: #15181
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/cls/rgw/cls_rgw.cc

index 4920d46ac100a98515bb3d62ac89bbfe36a634a2..f59658c6ce89ff492eb3b1192910357d014d2985 100644 (file)
@@ -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;