1
0
Fork 0

ceph: ignore trailing data in monamp

This lets us extend the format more easily.

Signed-off-by: Sage Weil <sage@newdream.net>
hifive-unleashed-5.1
Sage Weil 2009-10-12 10:28:13 -07:00
parent 752727a1b2
commit 8fc57da4d3
1 changed files with 0 additions and 3 deletions

View File

@ -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++)