return "client_metrics";
}
- void print(ostream &out) const override {
+ void print(std::ostream &out) const override {
out << "client_metrics ";
for (auto &i : updates) {
i.print(&out);
return "mds_metrics";
}
- void print(ostream &out) const override {
+ void print(std::ostream &out) const override {
out << "mds_metrics from rank=" << metrics_message.rank << " carrying "
<< metrics_message.client_metrics_map.size() << " metric updates";
}
return "mdsping";
}
- void print(ostream &out) const override {
+ void print(std::ostream &out) const override {
out << "mdsping";
}
inodeno_t ino;
std::map<client_t,Capability::Export> cap_exports;
peer_inode_cap() {}
- peer_inode_cap(inodeno_t a, map<client_t, Capability::Export> b) : ino(a), cap_exports(b) {}
+ peer_inode_cap(inodeno_t a, std::map<client_t, Capability::Export> b) : ino(a), cap_exports(b) {}
void encode(ceph::buffer::list &bl) const
{
ENCODE_START(1, 1, bl);
public:
std::string_view get_type_name() const override { return "mds_scrub_stats"; }
- void print(ostream& o) const override {
+ void print(std::ostream& o) const override {
o << "mds_scrub_stats(e" << epoch;
if (update_scrubbing)
o << " [" << scrubbing_tags << "]";
void print(std::ostream& o) const override {
cmdmap_t cmdmap;
std::ostringstream ss;
- string prefix;
+ std::string prefix;
cmdmap_from_json(cmd, &cmdmap, ss);
cmd_getval(cmdmap, "prefix", prefix);
// Some config values contain sensitive data, so don't log them
o << "mon_command(";
if (prefix == "config set") {
- string name;
+ std::string name;
cmd_getval(cmdmap, "name", name);
o << "[{prefix=" << prefix << ", name=" << name << "}]";
} else if (prefix == "config-key set") {
- string key;
+ std::string key;
cmd_getval(cmdmap, "key", key);
o << "[{prefix=" << prefix << ", key=" << key << "}]";
} else {
void print(std::ostream& o) const override {
cmdmap_t cmdmap;
std::ostringstream ss;
- string prefix;
+ std::string prefix;
cmdmap_from_json(cmd, &cmdmap, ss);
cmd_getval(cmdmap, "prefix", prefix);
// Some config values contain sensitive data, so don't log them
o << "mon_command_ack(";
if (prefix == "config set") {
- string name;
+ std::string name;
cmd_getval(cmdmap, "name", name);
o << "[{prefix=" << prefix
<< ", name=" << name << "}]"
<< "=" << r << " " << rs << " v" << version << ")";
} else if (prefix == "config-key set") {
- string key;
+ std::string key;
cmd_getval(cmdmap, "key", key);
o << "[{prefix=" << prefix << ", key=" << key << "}]"
<< "=" << r << " " << rs << " v" << version << ")";
* location. Generally the monitor will force an update if it's given a
* location from the CLI on boot-up, and then never force again (so that it
* can be moved/updated via the ceph tool from elsewhere). */
- map<string,string> crush_loc;
+ std::map<std::string,std::string> crush_loc;
bool force_loc{false};
MMonJoin() : PaxosServiceMessage{MSG_MON_JOIN, 0, HEAD_VERSION, COMPAT_VERSION} {}
: PaxosServiceMessage{MSG_MON_JOIN, 0, HEAD_VERSION, COMPAT_VERSION},
fsid(f), name(n), addrs(av)
{ }
- MMonJoin(uuid_d &f, std::string n, const entity_addrvec_t& av, const map<string,string>& cloc, bool force)
+ MMonJoin(uuid_d &f, std::string n, const entity_addrvec_t& av,
+ const std::map<std::string,std::string>& cloc, bool force)
: PaxosServiceMessage{MSG_MON_JOIN, 0, HEAD_VERSION, COMPAT_VERSION},
fsid(f), name(n), addrs(av), crush_loc(cloc), force_loc(force)
{ }
}
std::string_view get_type_name() const override { return "mon_ping"; }
- void print(ostream& out) const override {
+ void print(std::ostream& out) const override {
out << "mon_ping(" << get_op_name(op)
<< " stamp " << stamp
<< ")";