]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: errorator omap_get_values() ops 36703/head
authorKefu Chai <kchai@redhat.com>
Tue, 18 Aug 2020 16:57:58 +0000 (00:57 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 19 Aug 2020 07:00:17 +0000 (15:00 +0800)
commit0690cc08d4097866e0061d95480ab33f3b07327a
treee749163b1ee1b70427b9015b64460c2f11c6caa7
parenteb3c4b512d60a26570fda1e18c7851d1edaf2a3d
crimson/osd: errorator omap_get_values() ops

* os/alienstore: do not panic if retval is less than 0. instead,
  translate ENOENT to enoent and other erros to input_output_error
* os/FuturizedStore: errorator omap_get_values() variants, so
  they return errorator::future<> instead of plain seastar::future<>
* os/seastore: update accordingly.
* osd/pg_backend: use enodata for OI without omap in it. better
  performance, and better readability this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/alienstore/alien_store.cc
src/crimson/os/alienstore/alien_store.h
src/crimson/os/cyanstore/cyan_store.cc
src/crimson/os/cyanstore/cyan_store.h
src/crimson/os/futurized_store.h
src/crimson/os/seastore/seastore.cc
src/crimson/os/seastore/seastore.h
src/crimson/osd/pg_backend.cc
src/crimson/osd/pg_backend.h
src/crimson/osd/pg_meta.cc