]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/ObjectStore: fix _update_op for split dest_cid 12071/head
authorSage Weil <sage@redhat.com>
Tue, 29 Mar 2016 19:24:34 +0000 (15:24 -0400)
committerNathan Cutler <ncutler@suse.com>
Fri, 18 Nov 2016 14:58:30 +0000 (15:58 +0100)
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e3dc7c772f563f97bc68ebc6dc6e0d408e7c11f3)

src/os/ObjectStore.h

index e0c12afc06786241f0fc63450a6e1c7fb24291b4..367089726df30d5a4127d486b947bb59869c3647 100644 (file)
@@ -606,7 +606,7 @@ public:
 
       case OP_SPLIT_COLLECTION2:
         assert(op->cid < cm.size());
-        op->dest_cid = cm[op->dest_oid];
+       assert(op->dest_cid < cm.size());
         op->cid = cm[op->cid];
         op->dest_cid = cm[op->dest_cid];
         break;