From: Sage Weil Date: Sun, 9 Feb 2020 15:22:56 +0000 (-0600) Subject: mon/PGMap: fix compat encoding of num_pg_by_state X-Git-Tag: v15.1.1~488^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b9359d0f54c4285913a6eb3bf329ec99df9faf51;p=ceph.git mon/PGMap: fix compat encoding of num_pg_by_state Signed-off-by: Sage Weil --- diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index e78508d4b462..b512d5caa3d5 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -63,7 +63,7 @@ void PGMapDigest::encode(bufferlist& bl, uint64_t features) const uint32_t n = num_pg_by_state.size(); encode(n, bl); for (auto p : num_pg_by_state) { - encode((uint32_t)p.first, bl); + encode((int32_t)p.first, bl); encode(p.second, bl); } }