]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Renamed and moved RGWPutObjEncryptFilter -> RGWPutObj_Filter.
authorAdam Kupczyk <akupczyk@mirantis.com>
Tue, 19 Apr 2016 09:44:13 +0000 (11:44 +0200)
committerAdam Kupczyk <akupczyk@mirantis.com>
Wed, 2 Nov 2016 10:34:51 +0000 (11:34 +0100)
Signed-off-by: Adam Kupczyk (akupczyk@mirantis.com)
src/rgw/rgw_op.cc
src/rgw/rgw_op.h

index 90e67d74a898513ab8cb8a1ffc626de90cf9eda3..da434a95c2522f1e16d578ea9a5d56049b1617a2 100644 (file)
@@ -2831,25 +2831,6 @@ int RGWPutObjProcessor_Multipart::do_complete(string& etag, real_time *mtime, re
   return r;
 }
 
-
-
-class RGWPutObjEncryptFilter : public RGWPutObjDataProcessor
-{
-protected:
-  RGWPutObjDataProcessor& next;
-public:
-  RGWPutObjEncryptFilter(RGWPutObjDataProcessor& next) :
-  next(next){}
-  virtual ~RGWPutObjEncryptFilter(){}
-  virtual int handle_data(bufferlist& bl, off_t ofs, void **phandle, bool *again) {
-    return next.handle_data(bl, ofs, phandle, again);
-  }
-  virtual int throttle_data(void *handle, bool need_to_wait) {
-    return next.throttle_data(handle, need_to_wait);
-  }
-}; /* RGWPutObjEncryptFilter */
-
-
 RGWPutObjProcessor *RGWPutObj::select_processor(RGWObjectCtx& obj_ctx, bool *is_multipart)
 {
   RGWPutObjProcessor *processor;
index 17832ed44f40dae82b78152a5c2ea2254cfe3089..01e21d5f9752e871f6281f97094888368dd7a1ff 100644 (file)
@@ -776,6 +776,22 @@ public:
   virtual uint32_t op_mask() { return RGW_OP_TYPE_WRITE; }
 };
 
+class RGWPutObj_Filter : public RGWPutObjDataProcessor
+{
+protected:
+  RGWPutObjDataProcessor& next;
+public:
+  RGWPutObj_Filter(RGWPutObjDataProcessor& next) :
+  next(next){}
+  virtual ~RGWPutObj_Filter(){}
+  virtual int handle_data(bufferlist& bl, off_t ofs, void **phandle, bool *again) {
+    return next.handle_data(bl, ofs, phandle, again);
+  }
+  virtual int throttle_data(void *handle, bool need_to_wait) {
+    return next.throttle_data(handle, need_to_wait);
+  }
+}; /* RGWPutObj_Filter */
+
 class RGWPostObj : public RGWOp {
 protected:
   off_t min_len;