Skip to content

Commit

Permalink
ceph: ignore trailing data in monamp
Browse files Browse the repository at this point in the history
This lets us extend the format more easily.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Oct 12, 2009
1 parent 752727a commit 8fc57da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/ceph/mon_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 8fc57da

Please sign in to comment.