]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/ObjectStore: fix _update_op for split dest_cid 8364/head
authorSage Weil <sage@redhat.com>
Tue, 29 Mar 2016 19:24:34 +0000 (15:24 -0400)
committerSage Weil <sage@redhat.com>
Tue, 29 Mar 2016 19:24:59 +0000 (15:24 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/ObjectStore.h

index f0727df27f3c6106ff48b4aca5ee3fd3cc3df6b5..1effc27a645159b8550d6e8dae2c0f146c61e44b 100644 (file)
@@ -728,7 +728,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;