From 0746488f9a3940c40ee1d4ad6550736b5c0f2cb5 Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Mon, 2 May 2016 15:12:31 +0100 Subject: [PATCH] osd/OSD.h: remove unneeded line We don't need to create a key with value 0 here. It is created in statement: pgid_tracker[pgid]++ if it doesnt exist. Signed-off-by: Michal Jarzabek --- src/osd/OSD.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osd/OSD.h b/src/osd/OSD.h index f57d67fc735..333e7779a91 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -1029,7 +1029,6 @@ public: void add_pgid(spg_t pgid, PG *pg) { Mutex::Locker l(pgid_lock); if (!pgid_tracker.count(pgid)) { - pgid_tracker[pgid] = 0; live_pgs[pgid] = pg; } pgid_tracker[pgid]++;