msgs: clean up v in message prints

This commit is contained in:
Sage Weil 2009-06-26 15:32:29 -07:00
parent fd8012acd2
commit 2b39f45e60
14 changed files with 13 additions and 15 deletions

View File

@ -30,7 +30,6 @@ v0.10
/- fix rados snaps vs 'ls'
/- improved monitor read model
- osd bugfixes
- make monclient less sucky on startup
bugs

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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 << ")";
}
};

View File

@ -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() {

View File

@ -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 << ")";
}
};

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {