]> 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>
Tue, 23 Sep 2014 20:55:47 +0000 (13:55 -0700)
RGWRadosPutObj couldn't refer to the ceph context.

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 6a555434ee3edaf742ee7e5910bcba8dd0de46dd)

src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h

index 7be2b48dd2e6595338abc49f574d4c544cff1774..4ac2991b65ad28f631f26ddc03fd1373f7f37382 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)
@@ -3033,10 +3038,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 d811b4996c0ce15a8b1959e53c5798edd1291547..eea113769e9d1f2c786806795d81bda3844d9dc6 100644 (file)
@@ -551,6 +551,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