]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: encode blacklist in deterministic order 2330/head
authorSage Weil <sage@redhat.com>
Tue, 26 Aug 2014 15:16:29 +0000 (08:16 -0700)
committerSage Weil <sage@redhat.com>
Tue, 26 Aug 2014 15:16:29 +0000 (08:16 -0700)
commit4672e50922b75d642056020b9745a3a5844424d3
treeb84dda46b5839ba0a7843e626c8a38a216e6955b
parenteb589428ddd66a17fe6094f6c9c976f5b7faf379
osd/OSDMap: encode blacklist in deterministic order

When we use an unordered_map the encoding order is non-deterministic,
which is problematic for OSDMap.  Construct an ordered map<> on encode
and use that.  This lets us keep the hash table for lookups in the general
case.

Fixes: #9211
Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSDMap.cc