From: Kefu Chai Date: Thu, 25 Feb 2016 07:11:44 +0000 (+0800) Subject: cls_rbd: fix the test for ceph-dencoder X-Git-Tag: v10.1.0~299^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7793%2Fhead;p=ceph.git 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 --- diff --git a/src/cls/rbd/cls_rbd_types.h b/src/cls/rbd/cls_rbd_types.h index cdc816108782..b0d5c459c9cf 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);