提交 8fc57da4 编写于 作者: S Sage Weil

ceph: ignore trailing data in monamp

This lets us extend the format more easily.
Signed-off-by: NSage Weil <sage@newdream.net>
上级 752727a1
......@@ -60,9 +60,6 @@ struct ceph_monmap *ceph_monmap_decode(void *p, void *end)
m->num_mon = num_mon;
ceph_decode_copy(&p, m->mon_inst, num_mon*sizeof(m->mon_inst[0]));
if (p != end)
goto bad;
dout("monmap_decode epoch %d, num_mon %d\n", m->epoch,
m->num_mon);
for (i = 0; i < m->num_mon; i++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册