Skip to content

Commit

Permalink
osd: do not clear osdmap cache on 'drop cache' command
Browse files Browse the repository at this point in the history
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
  • Loading branch information
mogeb committed Oct 3, 2018
1 parent 7d5de9a commit 1962f8d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/osd/OSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6301,11 +6301,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);
Expand Down

0 comments on commit 1962f8d

Please sign in to comment.