From 36097c3ac50883d28d4f00f0a2147867384d7e33 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 8 Feb 2011 08:21:31 -0800 Subject: [PATCH] osd: never rewrite log after {advance,activate}_map pg->dirty_log is never true, so this is dead code. And nothing in either of those two methods updates the pg log. Signed-off-by: Sage Weil --- src/osd/OSD.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 2983d68477914..51a1d23220b9e 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2756,8 +2756,6 @@ void OSD::handle_osd_map(MOSDMap *m) PG *pg = i->second; if (pg->dirty_info) pg->write_info(t); - if (pg->dirty_log) - pg->write_log(t); } bool do_shutdown = false; -- 2.39.5