]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: kill obsolete comments 25573/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 17 Dec 2018 01:27:40 +0000 (09:27 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 17 Dec 2018 01:33:35 +0000 (09:33 +0800)
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 <xie.xingguo@zte.com.cn>
src/osd/OSD.cc

index 92cec5482c9acbd5beb20ababd8184c4282b24e7..c387b02eb67616787c3dfce4624e8be5d0bb40a9 100644 (file)
@@ -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<epoch_t,OSDMapRef> added_maps;
   map<epoch_t,bufferlist> added_maps_bl;
   if (m->fsid != monc->get_fsid()) {