Skip to content

Commit b6f27f8

Browse files
committed
crimson/osd/pg: reuse already defined methods as many as possible to
improve readability Signed-off-by: Xuehan Xu <[email protected]>
1 parent 8a1fab3 commit b6f27f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crimson/osd/pg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ class PG : public boost::intrusive_ref_counter<
893893
bool can_discard_op(const MOSDOp& m) const;
894894
void context_registry_on_change();
895895
bool is_missing_object(const hobject_t& soid) const {
896-
return peering_state.get_pg_log().get_missing().get_items().count(soid);
896+
return get_local_missing().is_missing(soid);
897897
}
898898
bool is_unreadable_object(const hobject_t &oid,
899899
eversion_t* v = 0) const final {

0 commit comments

Comments
 (0)