]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/ObjectStore: prevent copying
authorSage Weil <sage@inktank.com>
Wed, 4 Dec 2013 22:46:49 +0000 (14:46 -0800)
committerSage Weil <sage@inktank.com>
Wed, 4 Dec 2013 22:46:49 +0000 (14:46 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/os/ObjectStore.h

index 8aa47f82a70472bf60f50d1318c055c7f258832d..5c7147cce597fa0c0b50ddf092ba0d0e8790f536 100644 (file)
@@ -866,6 +866,10 @@ public:
   ObjectStore(const std::string& path_) : path(path_), logger(NULL) {}
   virtual ~ObjectStore() {}
 
+  // no copying
+  ObjectStore(const ObjectStore& o);
+  const ObjectStore& operator=(const ObjectStore& o);
+
   // mgmt
   virtual int version_stamp_is_valid(uint32_t *version) { return 1; }
   virtual int update_version_stamp() = 0;