From f8b5e4cbe84af0550af83253f5aeb5dbc8b7501b Mon Sep 17 00:00:00 2001 From: Yan Jun Date: Wed, 20 Sep 2017 16:06:56 +0800 Subject: [PATCH] osd/PrimaryLogPG: drop unused variables Signed-off-by: Yan Jun --- src/osd/PrimaryLogPG.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index e74d5bfb2f2..81b81450abc 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -13571,7 +13571,6 @@ void PrimaryLogPG::scrub_snapshot_metadata( { dout(10) << __func__ << dendl; - coll_t c(info.pgid); bool repair = state_test(PG_STATE_REPAIR); bool deep_scrub = state_test(PG_STATE_DEEP_SCRUB); const char *mode = (repair ? "repair": (deep_scrub ? "deep-scrub" : "scrub")); @@ -13587,8 +13586,6 @@ void PrimaryLogPG::scrub_snapshot_metadata( unsigned missing = 0; inconsistent_snapset_wrapper soid_error, head_error; - bufferlist last_data; - for (map::reverse_iterator p = scrubmap.objects.rbegin(); p != scrubmap.objects.rend(); ++p) { const hobject_t& soid = p->first; -- 2.39.5