Skip to content

Commit

Permalink
rgw: d3n: remove legacy requirement to enable rgw_enable_ops_log
Browse files Browse the repository at this point in the history
for D3N cache enablement

Fixes: http://tracker.ceph.com/issues/51409

Signed-off-by: Mark Kogan <[email protected]>
  • Loading branch information
mkogan1 committed Jul 19, 2021
1 parent c2b9f6e commit 17292aa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/rgw/rgw_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,18 +325,13 @@ int radosgw_Main(int argc, const char **argv)

lsubdout(cct, rgw, 1) << "rgw_d3n: rgw_d3n_l1_local_datacache_enabled=" << cct->_conf->rgw_d3n_l1_local_datacache_enabled << dendl;
if (cct->_conf->rgw_d3n_l1_local_datacache_enabled) {
lsubdout(cct, rgw, 1) << "rgw_d3n: rgw_enable_ops_log=" << cct->_conf->rgw_enable_ops_log << dendl;
lsubdout(cct, rgw, 1) << "rgw_d3n: rgw_d3n_l1_datacache_persistent_path='" << cct->_conf->rgw_d3n_l1_datacache_persistent_path << "'" << dendl;
lsubdout(cct, rgw, 1) << "rgw_d3n: rgw_d3n_l1_datacache_size=" << cct->_conf->rgw_d3n_l1_datacache_size << dendl;
lsubdout(cct, rgw, 1) << "rgw_d3n: rgw_d3n_l1_evict_cache_on_start=" << cct->_conf->rgw_d3n_l1_evict_cache_on_start << dendl;
lsubdout(cct, rgw, 1) << "rgw_d3n: rgw_d3n_l1_fadvise=" << cct->_conf->rgw_d3n_l1_fadvise << dendl;
lsubdout(cct, rgw, 1) << "rgw_d3n: rgw_d3n_l1_eviction_policy=" << cct->_conf->rgw_d3n_l1_eviction_policy << dendl;
}
bool rgw_d3n_datacache_enabled = cct->_conf->rgw_d3n_l1_local_datacache_enabled;
if (rgw_d3n_datacache_enabled && !cct->_conf->rgw_enable_ops_log) {
lsubdout(cct, rgw_datacache, 0) << "rgw_d3n: WARNING: D3N DataCache disabling (D3N requires that rgw_enable_ops_log will be enabled also)" << dendl;
rgw_d3n_datacache_enabled = false;
}
if (rgw_d3n_datacache_enabled && (cct->_conf->rgw_max_chunk_size != cct->_conf->rgw_obj_stripe_size)) {
lsubdout(cct, rgw_datacache, 0) << "rgw_d3n: WARNING: D3N DataCache disabling (D3N requires that the chunk_size equals stripe_size)" << dendl;
rgw_d3n_datacache_enabled = false;
Expand Down

0 comments on commit 17292aa

Please sign in to comment.