]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #38219 from rzarzynski/wip-crimson-restore-obs
authorKefu Chai <kchai@redhat.com>
Tue, 1 Dec 2020 15:58:45 +0000 (23:58 +0800)
committerGitHub <noreply@github.com>
Tue, 1 Dec 2020 15:58:45 +0000 (23:58 +0800)
crimson: conditionally reload ObjectState if execution fails

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
1  2 
src/crimson/osd/pg.cc
src/crimson/osd/pg.h

Simple merge
index d81d81f8f7939d08fa186dc1369c7df889e67712,2e061c4e1da0f61a7c8a1ab2c9adf1478891bd1b..f7db6ba6cda167f2f1e02cb7e780828e6ca8c628
@@@ -500,12 -501,14 +501,15 @@@ public
    load_obc_ertr::future<crimson::osd::ObjectContextRef>
    load_head_obc(ObjectContextRef obc);
  
+   load_obc_ertr::future<>
+   reload_obc(crimson::osd::ObjectContext& obc) const;
  public:
 -  using with_obc_func_t = std::function<seastar::future<> (ObjectContextRef)>;
 +  using with_obc_func_t =
 +    std::function<load_obc_ertr::future<> (ObjectContextRef)>;
  
    template<RWState::State State>
 -  seastar::future<> with_head_obc(hobject_t oid, with_obc_func_t&& func);
 +  load_obc_ertr::future<> with_head_obc(hobject_t oid, with_obc_func_t&& func);
  
    load_obc_ertr::future<> with_locked_obc(
      Ref<MOSDOp> &m,