]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PGLog: do not use unique_ptr explicitly 37950/head
authorKefu Chai <kchai@redhat.com>
Wed, 4 Nov 2020 14:40:32 +0000 (22:40 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 4 Nov 2020 14:48:58 +0000 (22:48 +0800)
commit4d9b9c5115fa8107008c245964b16dbdfd0f1d6e
treec08b2160a25ee59ecf082cc7de01fd2000b84de5
parent0494d786cd98b70549befe75162655e3ab9cb303
osd/PGLog: do not use unique_ptr explicitly

* do not use unique_ptr<> explicitly, use `seastar::do_with()` for
  better readability
* use seastar::do_until() instead of seastar::repeat() for better
  readability. plain boolean is simpler than
  `seastar::stop_iteration::yes`
* do not capture variables using FuturizedStoreLogReader if we could
  pass them by instant parameters.
* rename "start()" to "read()". as "read" is more specific in this
  context.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/PGLog.cc