]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
make misc items as not copyable
authorSage Weil <sage.weil@dreamhost.com>
Tue, 21 Jun 2011 22:58:59 +0000 (15:58 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 21 Jun 2011 22:58:59 +0000 (15:58 -0700)
These structures are all not copyable.  Make sure we get a link error if
we try.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/client/Trace.h
src/common/BackTrace.h
src/common/RWLock.h
src/common/Thread.h
src/crush/CrushWrapper.h
src/include/Context.h
src/osd/ReplicatedPG.h
src/osdc/Filer.h
src/osdc/ObjectCacher.h

index 6665f21b4f83079ceff8596fb9e908a8200abcf2..dc3ac22e6f2f70a49412072ddd26a4d3d6fdf42c 100644 (file)
@@ -44,6 +44,9 @@ class Trace {
     delete fs; 
   }
 
+  Trace(const Trace& other);
+  const Trace& operator=(const Trace& other);
+
   int get_line() { return _line; }
 
   void start();
index a7a3b6e33c7512979bbcbe1265171e432c6bc06f..b5d1e1d7ba415d69df7cde5598131441e0fb7d3a 100644 (file)
@@ -23,6 +23,9 @@ struct BackTrace {
     free(strings);
   }
 
+  BackTrace(const BackTrace& other);
+  const BackTrace& operator=(const BackTrace& other);
+
   void print(std::ostream& out);
 };
 
index adbd5f0019341ffbe6a0036e160a3777e655717e..f8915ed288e0e25fa53d455fc82fda8e2135e2d2 100644 (file)
@@ -26,7 +26,9 @@ class RWLock
   const char *name;
   int id;
 
-  public:
+public:
+  RWLock(const RWLock& other);
+  const RWLock& operator=(const RWLock& other);
 
   RWLock(const char *n) : name(n), id(-1) {
     pthread_rwlock_init(&L, NULL);
index ec25a2a5a01626104718e7959fb4e94376770f28..ea094450024f115269b704363eade1fc664c8553 100644 (file)
@@ -23,6 +23,9 @@ class Thread {
   pthread_t thread_id;
 
  public:
+  Thread(const Thread& other);
+  const Thread& operator=(const Thread& other);
+
   Thread();
   virtual ~Thread();
 
index 0f9c8d19fe2f90a57f1880264abc7f936bdce650..1b74a8e8b85ce85a7ba5d8db6d4eed924609af62 100644 (file)
@@ -68,6 +68,9 @@ private:
   }
 
 public:
+  CrushWrapper(const CrushWrapper& other);
+  const CrushWrapper& operator=(const CrushWrapper& other);
+
   CrushWrapper() : crush(0), have_rmaps(false) {}
   ~CrushWrapper() {
     if (crush) crush_destroy(crush);
index 46e09bad81f827af069e7114fe760d23d386fb73..513986964497f999a1e0efe0f15768244eaf63eb 100644 (file)
  */
 class Context {
  public:
+  Context(const Context& other);
+  const Context& operator=(const Context& other);
+
+  Context() {}
   virtual ~Context() {}       // we want a virtual destructor!!!
   virtual void finish(int r) = 0;
 };
index c3b816ce26bdb8d47450e364f19c264bdc2a90ac..cf4229136677d936ac6ee60ef50f0676e762fdcf 100644 (file)
@@ -365,6 +365,9 @@ public:
 
     ReplicatedPG *pg;
 
+    OpContext(const OpContext& other);
+    const OpContext& operator=(const OpContext& other);
+
     OpContext(Message *_op, osd_reqid_t _reqid, vector<OSDOp>& _ops,
              ObjectState *_obs, ReplicatedPG *_pg) :
       op(_op), reqid(_reqid), ops(_ops), obs(_obs), new_obs(_obs->oi, _obs->exists),
index 938837945f80cc39e95886e821ee93bc4bb3e25d..63d24b850e65d068e3e12e688f2e5f5965c8e1c8 100644 (file)
@@ -82,6 +82,9 @@ class Filer {
   void _probed(Probe *p, const object_t& oid, uint64_t size, utime_t mtime);
 
  public:
+  Filer(const Filer& other);
+  const Filer operator=(const Filer& other);
+
   Filer(Objecter *o) : objecter(o) {}
   ~Filer() {}
 
index ab562a54b082d4c0d9ba327ff8ab25f3d1a5b983..3bba91c159ae3d4e86867d37a29bab328844aa75 100644 (file)
@@ -169,6 +169,9 @@ class ObjectCacher {
     int rdlock_ref;  // how many ppl want or are using a READ lock
 
   public:
+    Object(const Object& other);
+    const Object& operator=(const Object& other);
+
     Object(ObjectCacher *_oc, sobject_t o, ObjectSet *os, object_locator_t& l) : 
       oc(_oc),
       oid(o), oset(os), set_item(this), oloc(l),