void Migrator::audit()
{
- if (!g_conf->subsys.should_gather(ceph_subsys_mds, 5))
+ if (!g_conf->subsys.should_gather<ceph_subsys_mds, 5>())
return; // hrm.
// import_state
}
}
skip:
- if (g_conf->subsys.should_gather(ceph_subsys_filestore, 20)) {
+ if (g_conf->subsys.should_gather<ceph_subsys_filestore, 20>()) {
for (auto& p : aset) {
dout(20) << __FUNC__ << ": set " << p.first << dendl;
}
map<pg_shard_t, pg_info_t> all_info(peer_info.begin(), peer_info.end());
all_info[pg_whoami] = info;
- if (cct->_conf->subsys.should_gather(dout_subsys, 10)) {
+ if (cct->_conf->subsys.should_gather<dout_subsys, 10>()) {
for (map<pg_shard_t, pg_info_t>::iterator p = all_info.begin();
p != all_info.end();
++p) {
goto fail;
}
tracepoint(osd, do_osd_op_pre_omapsetvals, soid.oid.name.c_str(), soid.snap.val);
- if (cct->_conf->subsys.should_gather(dout_subsys, 20)) {
+ if (cct->_conf->subsys.should_gather<dout_subsys, 20>()) {
dout(20) << "setting vals: " << dendl;
map<string,bufferlist> to_set;
bufferlist::iterator pt = to_set_bl.begin();
assert(check(oid));
set<string> to_remove;
to_remove.insert(to_object_key(oid));
- if (g_conf->subsys.should_gather(ceph_subsys_osd, 20)) {
+ if (g_conf->subsys.should_gather<ceph_subsys_osd, 20>()) {
for (auto& i : to_remove) {
dout(20) << __func__ << " rm " << i << dendl;
}
encode(in, bl);
to_set[to_object_key(oid)] = bl;
dout(20) << __func__ << " " << oid << " " << in.snaps << dendl;
- if (g_conf->subsys.should_gather(ceph_subsys_osd, 20)) {
+ if (g_conf->subsys.should_gather<ceph_subsys_osd, 20>()) {
for (auto& i : to_set) {
dout(20) << __func__ << " set " << i.first << dendl;
}
to_remove.insert(to_raw_key(make_pair(*i, oid)));
}
}
- if (g_conf->subsys.should_gather(ceph_subsys_osd, 20)) {
+ if (g_conf->subsys.should_gather<ceph_subsys_osd, 20>()) {
for (auto& i : to_remove) {
dout(20) << __func__ << " rm " << i << dendl;
}
++i) {
to_add.insert(to_raw(make_pair(*i, oid)));
}
- if (g_conf->subsys.should_gather(ceph_subsys_osd, 20)) {
+ if (g_conf->subsys.should_gather<ceph_subsys_osd, 20>()) {
for (auto& i : to_add) {
dout(20) << __func__ << " set " << i.first << dendl;
}
++i) {
to_remove.insert(to_raw_key(make_pair(*i, oid)));
}
- if (g_conf->subsys.should_gather(ceph_subsys_osd, 20)) {
+ if (g_conf->subsys.should_gather<ceph_subsys_osd, 20>()) {
for (auto& i : to_remove) {
dout(20) << __func__ << " rm " << i << dendl;
}
if (init_error != 0)
return init_error;
- if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
const auto& env_map = get_env().get_map();
for (const auto& iter: env_map) {
}
void RGWAsyncRadosProcessor::RGWWQ::_dump_queue() {
- if (!g_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (!g_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
return;
}
deque<RGWAsyncRadosRequest *>::iterator iter;
}
parts_len.back() += mi.get_stripe_size();
}
- if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
for (size_t i = 0; i<parts_len.size(); i++) {
ldout(cct, 20) << "Manifest part " << i << ", size=" << parts_len[i] << dendl;
}
ldout(cct, 0) << "ERROR: could not decode policy, caught buffer::error" << dendl;
return -EIO;
}
- if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 15)) {
- RGWAccessControlPolicy_S3 *s3policy = static_cast<RGWAccessControlPolicy_S3 *>(policy);
+ if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 15>()) {
ldout(cct, 15) << __func__ << " Read AccessControlPolicy";
+ RGWAccessControlPolicy_S3 *s3policy = static_cast<RGWAccessControlPolicy_S3 *>(policy);
s3policy->to_xml(*_dout);
*_dout << dendl;
}
ldout(s->cct, 0) << "ERROR: could not decode policy, caught buffer::error" << dendl;
return -EIO;
}
- if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 15)) {
+ if (s->cct->_conf->subsys.should_gather<ceph_subsys_rgw, 15>()) {
RGWCORSConfiguration_S3 *s3cors = static_cast<RGWCORSConfiguration_S3 *>(&bucket_cors);
ldout(s->cct, 15) << "Read RGWCORSConfiguration";
s3cors->to_xml(*_dout);
}
}
- if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 15)) {
+ if (s->cct->_conf->subsys.should_gather<ceph_subsys_rgw, 15>()) {
ldout(s->cct, 15) << "Old AccessControlPolicy";
policy->to_xml(*_dout);
*_dout << dendl;
if (op_ret < 0)
return;
- if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 15)) {
+ if (s->cct->_conf->subsys.should_gather<ceph_subsys_rgw, 15>()) {
ldout(s->cct, 15) << "New AccessControlPolicy:";
new_policy.to_xml(*_dout);
*_dout << dendl;
if (op_ret < 0)
return;
- if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 15)) {
+ if (s->cct->_conf->subsys.should_gather<ceph_subsys_rgw, 15>()) {
ldout(s->cct, 15) << "New LifecycleConfiguration:";
new_config.to_xml(*_dout);
*_dout << dendl;
void RGWProcess::RGWWQ::_dump_queue()
{
- if (!g_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (!g_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
return;
}
deque<RGWRequest *>::iterator iter;
ldout(cct, 0) << "ERROR: could not decode policy, caught buffer::error" << dendl;
return -EIO;
}
- if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 15)) {
+ if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 15>()) {
RGWAccessControlPolicy_S3 *s3policy = static_cast<RGWAccessControlPolicy_S3 *>(policy);
ldout(cct, 15) << __func__ << " Read AccessControlPolicy";
s3policy->to_xml(*_dout);
return -EIO;
}
ldout(cct, 10) << "manifest: total_size = " << s->manifest.get_obj_size() << dendl;
- if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20) && s->manifest.has_explicit_objs()) {
+ if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>() && \
+ s->manifest.has_explicit_objs()) {
RGWObjManifest::obj_iterator mi;
for (mi = s->manifest.obj_begin(); mi != s->manifest.obj_end(); ++mi) {
ldout(cct, 20) << "manifest: ofs=" << mi.get_ofs() << " loc=" << mi.get_location().get_raw_obj(this) << dendl;
}
if (params.attrs) {
*params.attrs = astate->attrset;
- if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
for (iter = params.attrs->begin(); iter != params.attrs->end(); ++iter) {
ldout(cct, 20) << "Read xattr: " << iter->first << dendl;
}
if (attrs) {
*attrs = astate->attrset;
- if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
map<string, bufferlist>::iterator iter;
for (iter = attrs->begin(); iter != attrs->end(); ++iter) {
ldout(cct, 20) << "Read xattr: " << iter->first << dendl;
return -EINVAL;
}
- if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (s->cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
ldout(s->cct, 20) << "request content_type_str="
<< req_content_type_str << dendl;
ldout(s->cct, 20) << "request content_type params:" << dendl;
return 0;
}
- if (cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
for (const auto& i: env.get_map()) {
ldout(cct, 20) << "> " << i.first << " -> " << rgw::crypt_sanitize::x_meta_map{i.first, i.second} << dendl;
}
return;
}
- if (store->ctx()->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (store->ctx()->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
for (set<int>::iterator iter = updated_shards.begin(); iter != updated_shards.end(); ++iter) {
ldout(s->cct, 20) << __func__ << "(): updated shard=" << *iter << dendl;
}
return;
}
- if (store->ctx()->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (store->ctx()->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
for (map<int, set<string> >::iterator iter = updated_shards.begin(); iter != updated_shards.end(); ++iter) {
ldout(s->cct, 20) << __func__ << "(): updated shard=" << iter->first << dendl;
set<string>& keys = iter->second;
if (r < 0)
return r;
- if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (s->cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
ldout(s->cct, 20) << "read part header -- part.name="
<< part.name << dendl;
in_data.append(data, len);
}
- if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 15)) {
+ if (s->cct->_conf->subsys.should_gather<ceph_subsys_rgw, 15>()) {
ldout(s->cct, 15) << "CORSConfiguration";
cors_config->to_xml(*_dout);
*_dout << dendl;
return ret;
}
- if (s->cct->_conf->subsys.should_gather(ceph_subsys_rgw, 20)) {
+ if (s->cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
ldout(s->cct, 20) << "read part header -- part.name="
<< part.name << dendl;