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>
}
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()) {