Skip to content

Commit

Permalink
os/bluestore: udpate cache logger after trim_cache
Browse files Browse the repository at this point in the history
Signed-off-by: Haodong Tang <haodong.tang@intel.com>
  • Loading branch information
haodong committed Nov 1, 2016
1 parent 7a633e4 commit d4e6d3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/bluestore/BlueStore.cc
Expand Up @@ -2425,6 +2425,8 @@ void BlueStore::Collection::trim_cache()
cache->trim(
g_conf->bluestore_onode_cache_size / store->cache_shards.size(),
g_conf->bluestore_buffer_cache_size / store->cache_shards.size());

_update_cache_logger();
}

// =======================================================
Expand Down Expand Up @@ -6613,8 +6615,6 @@ void BlueStore::_kv_sync_thread()
// this is as good a place as any ...
_reap_collections();

_update_cache_logger();

if (bluefs) {
if (!bluefs_gift_extents.empty()) {
_commit_bluefs_freespace(bluefs_gift_extents);
Expand Down

0 comments on commit d4e6d3e

Please sign in to comment.