]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os: use structured binding in loop 43043/head
authorKefu Chai <tchaikov@gmail.com>
Fri, 3 Sep 2021 14:52:06 +0000 (22:52 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 3 Sep 2021 14:52:12 +0000 (22:52 +0800)
commit39ad45ce6338aa11e488e209c61153e274cfb516
tree20f10cd1ed3eb1d7a38ebbd4c9b2996f25be108f
parent8d1bd26d8364b8f7985d072396229318f784474a
crimson/os: use structured binding in loop

also avoid using `map[key] = val` for setting an item in map, as, if
he key does not exist in map, `map[key]` would have to create a value
using its default ctor, and then call the `operator=(bufferlist&&)` to
set it.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/os/cyanstore/cyan_store.cc