Merge pull request #22066 from liewegas/wip-pgmap-digest-decode

mon/PGMap: fix PGMapDigest decode

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Sage Weil 2018-05-18 15:53:20 -05:00 committed by GitHub
commit 6c9d937828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,7 @@ void PGMapDigest::decode(bufferlist::const_iterator& p)
} else {
map<int32_t, int32_t> nps;
decode(nps, p);
num_pg_by_state.clear();
for (auto i : nps) {
num_pg_by_state[i.first] = i.second;
}