]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not clear osdmap cache on 'drop cache' command
authorMohamad Gebai <mgebai@suse.com>
Wed, 3 Oct 2018 19:31:46 +0000 (15:31 -0400)
committerMohamad Gebai <mgebai@suse.com>
Wed, 10 Oct 2018 15:45:51 +0000 (11:45 -0400)
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
src/osd/OSD.cc

index 8fe60b8c0ebdb478b6fcf680e04bdb3e610d4524..136782ae97a55b58488be751fa9193644a82920f 100644 (file)
@@ -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<PGRef> pgs;
     _get_pgs(&pgs);