]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix compilation
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 14 Aug 2014 20:35:12 +0000 (13:35 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 14 Aug 2014 20:35:12 +0000 (13:35 -0700)
RGWRadosPutObj couldn't refer to the ceph context.

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h

index 3f561d844ec0d277d9720890a06dbcbd93712815..f64ffe1bc5666679b7f209b9aa27168a1cdcb1f2 100644 (file)
@@ -876,6 +876,11 @@ int RGWPutObjProcessor::complete(string& etag, time_t *mtime, time_t set_mtime,
   return 0;
 }
 
+CephContext *RGWPutObjProcessor::ctx()
+{
+  return store->ctx();
+}
+
 RGWPutObjProcessor::~RGWPutObjProcessor()
 {
   if (is_complete)
@@ -3046,10 +3051,10 @@ public:
          */
         ret = opstate->renew_state();
         if (ret < 0) {
-          ldout(store->ctx(), 0) << "ERROR: RGWRadosPutObj::handle_data(): failed to renew op state ret=" << ret << dendl;
+          ldout(processor->ctx(), 0) << "ERROR: RGWRadosPutObj::handle_data(): failed to renew op state ret=" << ret << dendl;
           int r = processor->throttle_data(handle, false);
           if (r < 0) {
-            ldout(store->ctx(), 0) << "ERROR: RGWRadosPutObj::handle_data(): processor->throttle_data() returned " << r << dendl;
+            ldout(processor->ctx(), 0) << "ERROR: RGWRadosPutObj::handle_data(): processor->throttle_data() returned " << r << dendl;
           }
           /* could not renew state! might have been marked as cancelled */
           return ret;
index 2792352b8e80e88f3ce2aa870819a15a09abbe8d..ed725340ad738fdebe07122a20ed4d4f6385d6a2 100644 (file)
@@ -559,6 +559,8 @@ public:
   virtual int handle_data(bufferlist& bl, off_t ofs, void **phandle, bool *again) = 0;
   virtual int throttle_data(void *handle, bool need_to_wait) = 0;
   virtual int complete(string& etag, time_t *mtime, time_t set_mtime, map<string, bufferlist>& attrs);
+
+  CephContext *ctx();
 };
 
 class RGWPutObjProcessor_Plain : public RGWPutObjProcessor