From e3dc7c772f563f97bc68ebc6dc6e0d408e7c11f3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 29 Mar 2016 15:24:34 -0400 Subject: [PATCH] os/ObjectStore: fix _update_op for split dest_cid Signed-off-by: Sage Weil --- src/os/ObjectStore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index f0727df27f3c6..1effc27a64515 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; -- 2.39.5