From: Sage Weil Date: Tue, 29 Mar 2016 19:24:34 +0000 (-0400) Subject: os/ObjectStore: fix _update_op for split dest_cid X-Git-Tag: v10.1.1~68^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8364%2Fhead;p=ceph.git os/ObjectStore: fix _update_op for split dest_cid Signed-off-by: Sage Weil --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index f0727df27f3c..1effc27a6451 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -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;