]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os: use structured binding in loop 42921/head
authorKefu Chai <kchai@redhat.com>
Wed, 25 Aug 2021 14:25:54 +0000 (22:25 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 25 Aug 2021 14:25:55 +0000 (22:25 +0800)
commit935a896bf6998ceb44e3ebc09aaf94ca906847dd
treef708ac30c51ef7cc90a5d2c8af642503eef37bca
parent96870e88bfe4972d0931185815d1a00bf239c12e
crimson/os: use structured binding in loop

also avoid using `map[key] = val` for setting an item in map, as, if
the 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 <kchai@redhat.com>
src/crimson/os/cyanstore/cyan_store.cc