cls_rbd: encode entity_addr_t with features

mirror_image_status_get method call currently fails with EIO

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2016-06-08 15:15:58 -04:00
parent 25dfbd09f4
commit 051c96589e

View File

@ -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) {