]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ObjectStore::Transaction::_update_op: handle OP_TRY_RENAME
authorSamuel Just <sjust@redhat.com>
Fri, 18 Mar 2016 18:11:58 +0000 (11:11 -0700)
committerSamuel Just <sjust@redhat.com>
Tue, 29 Mar 2016 18:13:35 +0000 (11:13 -0700)
Fixes: http://tracker.ceph.com/issues/15205
Signed-off-by: Samuel Just <sjust@redhat.com>
src/os/ObjectStore.h

index fba6b76fcf18e7d42c054add3c5a06f276a98b18..f0727df27f3c6106ff48b4aca5ee3fd3cc3df6b5 100644 (file)
@@ -718,6 +718,14 @@ public:
         op->dest_oid = om[op->dest_oid];
         break;
 
+      case OP_TRY_RENAME:
+        assert(op->cid < cm.size());
+        assert(op->oid < om.size());
+        assert(op->dest_oid < om.size());
+        op->cid = cm[op->cid];
+        op->oid = om[op->oid];
+        op->dest_oid = om[op->dest_oid];
+
       case OP_SPLIT_COLLECTION2:
         assert(op->cid < cm.size());
         op->dest_cid = cm[op->dest_oid];