From 051c96589e556910b2d67460bd8c734de8710c30 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Wed, 8 Jun 2016 15:15:58 -0400 Subject: [PATCH] cls_rbd: encode entity_addr_t with features mirror_image_status_get method call currently fails with EIO Signed-off-by: Jason Dillaman --- src/cls/rbd/cls_rbd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cls/rbd/cls_rbd.cc b/src/cls/rbd/cls_rbd.cc index cf5c2ec597d..36e35b07b5d 100644 --- a/src/cls/rbd/cls_rbd.cc +++ b/src/cls/rbd/cls_rbd.cc @@ -3219,7 +3219,7 @@ int image_status_set(cls_method_context_t hctx, const string &global_image_id, assert(r == 0); bufferlist bl; - encode(ondisk_status, bl); + encode(ondisk_status, bl, cls_get_features(hctx)); r = cls_cxx_map_set_val(hctx, status_global_key(global_image_id), &bl); if (r < 0) {