]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: trade a map<> for a plain arrary
authorKefu Chai <kchai@redhat.com>
Mon, 16 Aug 2021 12:03:22 +0000 (20:03 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 16 Aug 2021 12:12:19 +0000 (20:12 +0800)
commitc4b213984f48baa00fc038397f0ab368f0e04f28
tree7b40c4b30417a8aed08205b0b5f2b99a3c73f296
parent8940c35c6c0ff157015da6c5ce901431261b7841
librbd: trade a map<> for a plain arrary

for two reasons

* to avoid the overhead of copying the loop variables.
* no need to keep a map<> if what we need is just an arrary
* no need to keep a string if what we need is but an array of char

also mark the array "const", as we never change it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/librbd/io/QosImageDispatch.cc