mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
msgs: clean up v in message prints
This commit is contained in:
parent
fd8012acd2
commit
2b39f45e60
1
src/TODO
1
src/TODO
@ -30,7 +30,6 @@ v0.10
|
||||
/- fix rados snaps vs 'ls'
|
||||
/- improved monitor read model
|
||||
- osd bugfixes
|
||||
- make monclient less sucky on startup
|
||||
|
||||
bugs
|
||||
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
|
||||
const char *get_type_name() { return "getpoolstats"; }
|
||||
void print(ostream& out) {
|
||||
out << "getpoolstats(" << tid << " " << pools << "v " << version << ")";
|
||||
out << "getpoolstats(" << tid << " " << pools << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
|
||||
const char *get_type_name() { return "getpoolstats"; }
|
||||
void print(ostream& out) {
|
||||
out << "getpoolstatsreply(" << tid << "v " << version << ")";
|
||||
out << "getpoolstatsreply(" << tid << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -51,7 +51,7 @@ class MMDSBeacon : public PaxosServiceMessage {
|
||||
|
||||
void print(ostream& out) {
|
||||
out << "mdsbeacon(" << name << " " << ceph_mds_state_name(state)
|
||||
<< " seq " << seq << "v " << version << ")";
|
||||
<< " seq " << seq << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -30,7 +30,7 @@ class MMonCommandAck : public PaxosServiceMessage {
|
||||
|
||||
const char *get_type_name() { return "mon_command"; }
|
||||
void print(ostream& o) {
|
||||
o << "mon_command_ack(" << cmd << "=" << r << " " << rs << "v " << version << ")";
|
||||
o << "mon_command_ack(" << cmd << "=" << r << " " << rs << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -35,7 +35,7 @@ class MMonObserveNotify : public PaxosServiceMessage {
|
||||
o << "mon_observe_notify(v" << ver << " " << bl.length() << " bytes";
|
||||
if (is_latest)
|
||||
o << " latest";
|
||||
o << "v " << version << ")";
|
||||
o << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -38,7 +38,7 @@ class MOSDAlive : public PaxosServiceMessage {
|
||||
|
||||
const char *get_type_name() { return "osd_alive"; }
|
||||
void print(ostream &out) {
|
||||
out << "osd_alive(" << map_epoch << "v " << version << ")";
|
||||
out << "osd_alive(" << map_epoch << " v" << version << ")";
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -31,7 +31,7 @@ class MOSDBoot : public PaxosServiceMessage {
|
||||
|
||||
const char *get_type_name() { return "osd_boot"; }
|
||||
void print(ostream& out) {
|
||||
out << "osd_boot(osd" << sb.whoami << "v " << version << ")";
|
||||
out << "osd_boot(osd" << sb.whoami << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -49,7 +49,7 @@ class MOSDFailure : public PaxosServiceMessage {
|
||||
|
||||
const char *get_type_name() { return "osd_failure"; }
|
||||
void print(ostream& out) {
|
||||
out << "osd_failure(" << failed << " e" << epoch << "v " << version << ")";
|
||||
out << "osd_failure(" << failed << " e" << epoch << " v" << version << ")";
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -33,8 +33,7 @@ class MOSDGetMap : public PaxosServiceMessage {
|
||||
|
||||
const char *get_type_name() { return "get_osd_map"; }
|
||||
void print(ostream& out) {
|
||||
out << "get_osd_map(start " << start;
|
||||
out << "v " << version << ")";
|
||||
out << "get_osd_map(start " << start << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
|
||||
const char *get_type_name() { return "poolsnap"; }
|
||||
void print(ostream& out) {
|
||||
out << "poolsnap(" << tid << " " << name << "v " << version << ")";
|
||||
out << "poolsnap(" << tid << " " << name << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
const char *get_type_name() { return "poolsnapreply"; }
|
||||
|
||||
void print(ostream& out) {
|
||||
out << "poolsnapreply(" << tid << "v " << version << ")";
|
||||
out << "poolsnapreply(" << tid << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -29,7 +29,7 @@ struct MRemoveSnaps : public PaxosServiceMessage {
|
||||
|
||||
const char *get_type_name() { return "remove_snaps"; }
|
||||
void print(ostream& out) {
|
||||
out << "remove_snaps(" << snaps << "v " << version << ")";
|
||||
out << "remove_snaps(" << snaps << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
|
||||
const char *get_type_name() { return "statfs"; }
|
||||
void print(ostream& out) {
|
||||
out << "statfs(" << tid << "v " << version << ")";
|
||||
out << "statfs(" << tid << " v" << version << ")";
|
||||
}
|
||||
|
||||
void encode_payload() {
|
||||
|
Loading…
Reference in New Issue
Block a user