]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: udpate cache logger after trim_cache
authorhaodong <haodong.tang@intel.com>
Tue, 1 Nov 2016 15:39:03 +0000 (23:39 +0800)
committerhaodong <haodong.tang@intel.com>
Tue, 1 Nov 2016 17:44:23 +0000 (01:44 +0800)
Signed-off-by: Haodong Tang <haodong.tang@intel.com>
src/os/bluestore/BlueStore.cc

index b437135be5e8095aa72b276d110208b9f525c7aa..9052e5d61cb01c31e2324c2bf4d23e6d0c5d0ac6 100644 (file)
@@ -2428,6 +2428,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());
+
+  store->_update_cache_logger();
 }
 
 // =======================================================
@@ -6620,8 +6622,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);