]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: add feature into osdmap cache key.
authorXiaoxi CHEN <xiaoxchen@ebay.com>
Mon, 23 Apr 2018 17:57:52 +0000 (12:57 -0500)
committerSage Weil <sage@redhat.com>
Fri, 27 Apr 2018 16:12:43 +0000 (11:12 -0500)
commitd84a49e262e1a66103a97730d8b09587e5694c44
tree06ce89d4ad5aa00ebf7336c89d7f27e5337567d3
parent0ceb5c0f3694725c7043ea99b077816da2ca44a7
mon/OSDMonitor: add feature into osdmap cache key.

Change the cache from
SimpleLRU<version_t, bufferlist> inc_osd_cache;
to
SimpleLRU<pair<version_t, uint64_t>, bufferlist> inc_osd_cache;

By doing this , we can cache several encoded osdmap for different
features, not necessary to re-encoding for each client.

Signed-off-by: Xiaoxi CHEN <xiaoxchen@ebay.com>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h