config cfg;
cfg.addr.host = cct->_conf->rgw_d4n_host; // same or different address from block directory? -Sam
cfg.addr.port = std::to_string(cct->_conf->rgw_d4n_port);
+ cfg.clientname = "D4N.ObjectDir";
if (!cfg.addr.host.length() || !cfg.addr.port.length()) {
ldpp_dout(dpp, 10) << "D4N Directory " << __func__ << ": Object directory endpoint was not configured correctly" << dendl;
config cfg;
cfg.addr.host = cct->_conf->rgw_d4n_host;
cfg.addr.port = std::to_string(cct->_conf->rgw_d4n_port);
+ cfg.clientname = "D4N.BlockDir";
if (!cfg.addr.host.length() || !cfg.addr.port.length()) {
ldpp_dout(dpp, 10) << "D4N Directory " << __func__ << ": Block directory endpoint was not configured correctly" << dendl;
dir = new BlockDirectory{io};
}
~LFUDAPolicy() {
- //delete dir;
shutdown();
+ delete dir;
}
virtual int init(CephContext *cct, const DoutPrefixProvider* dpp) {
config cfg;
cfg.addr.host = address.substr(0, address.find(":"));
cfg.addr.port = address.substr(address.find(":") + 1, address.length());
+ cfg.clientname = "D4N.Policy";
if (!cfg.addr.host.length() || !cfg.addr.port.length()) {
ldpp_dout(dpp, 10) << "RGW Redis Cache: Redis cache endpoint was not configured correctly" << dendl;