diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 28e3cd85c23..d53d9016674 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -938,7 +938,7 @@ int PrimaryLogPG::do_command( ConnectionRef con, ceph_tid_t tid) { - const pg_missing_t &missing = pg_log.get_missing(); + const auto &missing = pg_log.get_missing(); string prefix; string format; @@ -11298,7 +11298,7 @@ bool PrimaryLogPG::start_recovery_ops( return false; } - const pg_missing_t &missing = pg_log.get_missing(); + const auto &missing = pg_log.get_missing(); unsigned int num_missing = missing.num_missing(); uint64_t num_unfound = get_num_unfound(); @@ -11438,7 +11438,7 @@ uint64_t PrimaryLogPG::recover_primary(uint64_t max, ThreadPool::TPHandle &handl { assert(is_primary()); - const pg_missing_t &missing = pg_log.get_missing(); + const auto &missing = pg_log.get_missing(); dout(10) << "recover_primary recovering " << recovering.size() << " in pg" << dendl;