From b0d2f40b033d9fe6f42e73190c2994bd302d186b Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Mon, 17 Dec 2018 09:27:40 +0800 Subject: [PATCH] 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 --- src/osd/OSD.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 92cec5482c9ac..c387b02eb6761 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()) { -- 2.39.5