From a70427028729fbcad09ef7ef3e086f20d502c5e3 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 25 Feb 2016 15:11:44 +0800 Subject: [PATCH] cls_rbd: fix the test for ceph-dencoder initialize MirrorImage::state to a certain value, otherwise the generated test instances would be undetermined, and hence fail the dencoder tests. Signed-off-by: Kefu Chai --- src/cls/rbd/cls_rbd_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cls/rbd/cls_rbd_types.h b/src/cls/rbd/cls_rbd_types.h index cdc8161087825..b0d5c459c9cf2 100644 --- a/src/cls/rbd/cls_rbd_types.h +++ b/src/cls/rbd/cls_rbd_types.h @@ -60,7 +60,7 @@ struct MirrorImage { : global_image_id(global_image_id), state(state) {} std::string global_image_id; - MirrorImageState state; + MirrorImageState state = MIRROR_IMAGE_STATE_DISABLING; void encode(bufferlist &bl) const; void decode(bufferlist::iterator &it); -- 2.39.5