]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: rgw_rados_ref uses default copy/move
authorCasey Bodley <cbodley@redhat.com>
Tue, 23 Oct 2018 21:27:51 +0000 (17:27 -0400)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 8 Nov 2018 17:19:30 +0000 (09:19 -0800)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/services/svc_rados.cc
src/rgw/services/svc_rados.h

index 5c61dcdbc0d904dcabee78eaeef41ee3ecbda806..bb486182aacc6f0ad43160137cfde1d59ecfee7f 100644 (file)
@@ -146,7 +146,6 @@ int RGWSI_RADOS::Obj::open()
     return r;
   }
 
-  ref.has_ioctx = true;
   ref.ioctx.locator_set_key(ref.key);
 
   return 0;
index 4d79c9ea6da9a35ad60082281e44a853d09452ea..b6b46aa1f867d32cecac2e8af45215eea58a06fc 100644 (file)
@@ -25,51 +25,7 @@ struct rgw_rados_ref {
   rgw_pool pool;
   string oid;
   string key;
-  bool has_ioctx{false};
   librados::IoCtx ioctx;
-
-  rgw_rados_ref() {}
-  ~rgw_rados_ref() {}
-
-  rgw_rados_ref(const rgw_rados_ref& r) : pool(r.pool),
-                                          oid(r.oid),
-                                          key(r.key),
-                                          has_ioctx(r.has_ioctx) {
-    if (r.has_ioctx) {
-      ioctx = r.ioctx;
-    }
-  }
-
-  rgw_rados_ref(const rgw_rados_ref&& r) : pool(std::move(r.pool)),
-                                           oid(std::move(r.oid)),
-                                           key(std::move(r.key)),
-                                           has_ioctx(r.has_ioctx) {
-    if (r.has_ioctx) {
-      ioctx = r.ioctx;
-    }
-  }
-
-  rgw_rados_ref& operator=(rgw_rados_ref&& r) {
-    pool = std::move(r.pool);
-    oid = std::move(r.oid);
-    key = std::move(r.key);
-    has_ioctx = r.has_ioctx;
-    if (has_ioctx) {
-      ioctx = r.ioctx;
-    }
-    return *this;
-  }
-
-  rgw_rados_ref& operator=(rgw_rados_ref& r) {
-    pool = r.pool;
-    oid = r.oid;
-    key = r.key;
-    has_ioctx = r.has_ioctx;
-    if (has_ioctx) {
-      ioctx = r.ioctx;
-    }
-    return *this;
-  }
 };
 
 class RGWSI_RADOS : public RGWServiceInstance