]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/HashIndex: use set<pair<string, hobject_t>> rather than multimap
authorSamuel Just <sam.just@inktank.com>
Fri, 20 Jul 2012 19:00:42 +0000 (12:00 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 20 Jul 2012 19:29:03 +0000 (12:29 -0700)
commitadc9b91f37a9eb310e014922f916d631584c8995
treeeed7a25602cdc17ede53bb78dfa5b792dab23085
parent6f381affdcdd5f8a984df9a5b0690b64b84e3900
os/HashIndex: use set<pair<string, hobject_t>> rather than multimap

Multimap does not make any guarantees about ordering of different
values with the same key.  list_by_hash, however, assumes that
the iterator order matches hobject_t order.  Thus, we use
set<pair<string, hobject_t> > to get the proper ordering.

Backport: stable

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/HashIndex.cc
src/os/HashIndex.h