]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/ObjectStore: deprecated collection_move
authorSage Weil <sage@redhat.com>
Wed, 10 Dec 2014 21:40:32 +0000 (13:40 -0800)
committerSage Weil <sage@redhat.com>
Fri, 19 Jun 2015 00:02:45 +0000 (17:02 -0700)
You will not be missed!

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/ObjectStore.h
src/os/Transaction.cc
src/test/objectstore/DeterministicOpSequence.cc

index 5fbc869785ef8ccfc222f53264a30049063ea814..e7d889c3c1d78ffcf7d49cb2fcab4a5167e7a1e2 100644 (file)
@@ -1241,7 +1241,8 @@ public:
       }
       data.ops++;
     }
-    void collection_move(coll_t cid, coll_t oldcid, const ghobject_t& oid) {
+    void collection_move(coll_t cid, coll_t oldcid, const ghobject_t& oid)
+      __attribute__ ((deprecated)) {
       // NOTE: we encode this as a fixed combo of ADD + REMOVE.  they
       // always appear together, so this is effectively a single MOVE.
       if (use_tbl) {
index fdbfa3bdb5f165840f98fc425f0a0a94c88d067a..07655b3f70c391a5b06ed051078f3d7d7d00315f 100644 (file)
@@ -975,7 +975,7 @@ void ObjectStore::Transaction::generate_test_instances(list<ObjectStore::Transac
   t->clone_range(c, o1, o2, 1, 12, 99);
 
   t->create_collection(c);
-  t->collection_move(c, c2, o3);
+  t->collection_move_rename(c, o2, c2, o3);
   t->remove_collection(c);
   t->collection_setattr(c, string("this"), bl);
   t->collection_rmattr(c, string("foo"));
index d25b1f7cb326e624da18f5af847009503a6bd647..3af0ed7bb695d95b9eadd7fbe3a277cbf02f32d2 100644 (file)
@@ -532,7 +532,7 @@ void DeterministicOpSequence::_do_coll_move(coll_t orig_coll, coll_t new_coll,
   ObjectStore::Transaction t;
   note_txn(&t);
   t.remove(new_coll, obj);
-  t.collection_move(new_coll, orig_coll, obj);
+  t.collection_move_rename(orig_coll, obj, new_coll, obj);
   m_store->apply_transaction(t);
 }