]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: never rewrite log after {advance,activate}_map
authorSage Weil <sage.weil@dreamhost.com>
Tue, 8 Feb 2011 16:21:31 +0000 (08:21 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 8 Feb 2011 16:22:54 +0000 (08:22 -0800)
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 <sage.weil@dreamhost.com>
src/osd/OSD.cc

index 2983d6847791457db60aca954ee7ae5a824a81d4..51a1d23220b9ef4daade78a2d880e056b3048b4d 100644 (file)
@@ -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;