]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: remove a use of g_ceph_context
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 30 Nov 2016 00:43:45 +0000 (16:43 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 30 Nov 2016 00:43:45 +0000 (16:43 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_lc.cc

index 8c5ec60a143dee2c5dc4d0e1011d24a4cd82794b..772e1e773462343f5dca2746778d90062394ee7a 100644 (file)
@@ -417,7 +417,7 @@ int RGWLC::process(int index, int max_lock_secs)
 {
   rados::cls::lock::Lock l(lc_index_lock_name);
   do {
-    utime_t now = ceph_clock_now(g_ceph_context);
+    utime_t now = ceph_clock_now(cct);
     pair<string, int > entry;//string = bucket_name:bucket_id ,int = LC_BUCKET_STATUS
     if (max_lock_secs <= 0)
       return -EAGAIN;