mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
os/bluestore: space between func and contents
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
ddab8e0dc2
commit
af0d3661db
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user