From: xie xingguo Date: Mon, 17 Dec 2018 01:27:40 +0000 (+0800) Subject: osd: kill obsolete comments X-Git-Tag: v14.1.0~610^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b0d2f40b033d9fe6f42e73190c2994bd302d186b;p=ceph.git osd: kill obsolete comments I added these comments a few years ago. Since bluestore can read things that aren't committed and https://github.com/ceph/ceph/pull/20177 should have made it work for filestore too, this shouldn't matter any more. Signed-off-by: xie xingguo --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 92cec5482c9a..c387b02eb676 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -7521,12 +7521,6 @@ void OSD::handle_osd_map(MOSDMap *m) } ceph_assert(osd_lock.is_locked()); - // Keep a ref in the list until we get the newly received map written - // onto disk. This is important because as long as the refs are alive, - // the OSDMaps will be pinned in the cache and we won't try to read it - // off of disk. Otherwise these maps will probably not stay in the cache, - // and reading those OSDMaps before they are actually written can result - // in a crash. map added_maps; map added_maps_bl; if (m->fsid != monc->get_fsid()) {