summaryrefslogtreecommitdiff
path: root/src/msg
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2009-11-12 09:51:29 -0800
committerYehuda Sadeh <yehuda@hq.newdream.net>2009-11-12 09:51:29 -0800
commitebe662377f1aa70d7d70b1ee2529b24b98e29ea3 (patch)
treed7a179b50382b2130365650237da909598682d37 /src/msg
parent486d696723374e40469e98b6e0c0b615f508f339 (diff)
downloadceph-ebe662377f1aa70d7d70b1ee2529b24b98e29ea3.tar.gz
msg: don't die unconditionally when got unknown message type
Diffstat (limited to 'src/msg')
-rw-r--r--src/msg/Message.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/msg/Message.cc b/src/msg/Message.cc
index 309f17eb9b7..b3495ed0ba3 100644
--- a/src/msg/Message.cc
+++ b/src/msg/Message.cc
@@ -502,7 +502,9 @@ Message *decode_message(ceph_msg_header& header, ceph_msg_footer& footer,
default:
dout(0) << "can't decode unknown message type " << type << " MSG_AUTH=" << CEPH_MSG_AUTH << dendl;
- assert(0);
+ if (g_conf.ms_die_on_bad_msg)
+ assert(0);
+ return 0;
}
m->set_header(header);