]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_client_io.cc
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / rgw / rgw_client_io.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <stdarg.h>
7
8 #include "rgw_client_io.h"
9 #include "rgw_crypt.h"
10 #include "rgw_crypt_sanitize.h"
11 #define dout_subsys ceph_subsys_rgw
12
13 namespace rgw {
14 namespace io {
15
16 [[nodiscard]] int BasicClient::init(CephContext *cct) {
17 int init_error = init_env(cct);
18
19 if (init_error != 0)
20 return init_error;
21
22 if (cct->_conf->subsys.should_gather<ceph_subsys_rgw, 20>()) {
23 const auto& env_map = get_env().get_map();
24
25 for (const auto& iter: env_map) {
26 rgw::crypt_sanitize::env x{iter.first, iter.second};
27 ldout(cct, 20) << iter.first << "=" << (x) << dendl;
28 }
29 }
30 return init_error;
31 }
32
33 } /* namespace io */
34 } /* namespace rgw */