Skip to content

Commit

Permalink
Merge pull request #16804 from xiexingguo/wip-some-cleanup
Browse files Browse the repository at this point in the history
os/bluestore: space between func and contents
  • Loading branch information
liupan1111 committed Aug 4, 2017
2 parents 47480d8 + af0d366 commit 9964cf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/os/bluestore/BlueStore.cc
Expand Up @@ -3736,17 +3736,17 @@ int BlueStore::_set_cache_sizes()
(double)1.0 - (double)cache_meta_ratio - (double)cache_kv_ratio;

if (cache_meta_ratio < 0 || cache_meta_ratio > 1.0) {
derr << __func__ << "bluestore_cache_meta_ratio (" << cache_meta_ratio
derr << __func__ << " bluestore_cache_meta_ratio (" << cache_meta_ratio
<< ") must be in range [0,1.0]" << dendl;
return -EINVAL;
}
if (cache_kv_ratio < 0 || cache_kv_ratio > 1.0) {
derr << __func__ << "bluestore_cache_kv_ratio (" << cache_kv_ratio
derr << __func__ << " bluestore_cache_kv_ratio (" << cache_kv_ratio
<< ") must be in range [0,1.0]" << dendl;
return -EINVAL;
}
if (cache_meta_ratio + cache_kv_ratio > 1.0) {
derr << __func__ << "bluestore_cache_meta_ratio (" << cache_meta_ratio
derr << __func__ << " bluestore_cache_meta_ratio (" << cache_meta_ratio
<< ") + bluestore_cache_kv_ratio (" << cache_kv_ratio
<< ") = " << cache_meta_ratio + cache_kv_ratio << "; must be <= 1.0"
<< dendl;
Expand Down

0 comments on commit 9964cf1

Please sign in to comment.