From: Mohamad Gebai Date: Wed, 3 Oct 2018 19:31:46 +0000 (-0400) Subject: osd: do not clear osdmap cache on 'drop cache' command X-Git-Tag: v14.0.1~56^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6d1aa954a5cd4c3cbe3dd5bb444c4517ddaa8b8e;p=ceph.git osd: do not clear osdmap cache on 'drop cache' command Signed-off-by: Mohamad Gebai --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 8fe60b8c0ebdb..136782ae97a55 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -6511,11 +6511,6 @@ int OSD::_do_command( ds << "Error flushing objectstore cache: " << cpp_strerror(r); goto out; } - // Clear osd map cache - { - Mutex::Locker l(service.map_cache_lock); - service.map_cache.clear(); - } // Clear the objectcontext cache (per PG) vector pgs; _get_pgs(&pgs);