]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: avoid lookup in a map twice 42432/head
authorKefu Chai <kchai@redhat.com>
Wed, 21 Jul 2021 04:40:20 +0000 (12:40 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 21 Jul 2021 04:57:21 +0000 (12:57 +0800)
commitd0686c47d387fdbd7ee26f48264600d626e8a965
treeeb124b5e947bd2724bf81320380985b72c2f469d
parentb35f4ed81865eacd34e81dd4d1368ea092f51523
crush/CrushWrapper: avoid lookup in a map twice

there is no need to look up in a map twice for searching an item by a
given key.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crush/CrushWrapper.h