]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rbd: fix the test for ceph-dencoder 7793/head
authorKefu Chai <kchai@redhat.com>
Thu, 25 Feb 2016 07:11:44 +0000 (15:11 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Feb 2016 15:07:49 +0000 (23:07 +0800)
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 <kchai@redhat.com>
src/cls/rbd/cls_rbd_types.h

index cdc8161087825123a4ad074b90457942f73c8f44..b0d5c459c9cf21c1e9fdcac212cc03915b040ed2 100644 (file)
@@ -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);