aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-10-12 13:28:13 -0400
committerSage Weil <sage@newdream.net>2009-10-12 13:29:24 -0400
commit8fc57da4d32767cc6096ecaed24636dabefd1dbc (patch)
treed69f095c5fb1ba62bf6d6b99c877b6c6c6a3db33
parent752727a1b21a462d6ef634d552f180ae692f8947 (diff)
ceph: ignore trailing data in monamp
This lets us extend the format more easily. Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r--fs/ceph/mon_client.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ceph/mon_client.c b/fs/ceph/mon_client.c
index dc698caccc42..d6c8e783467e 100644
--- a/fs/ceph/mon_client.c
+++ b/fs/ceph/mon_client.c
@@ -60,9 +60,6 @@ struct ceph_monmap *ceph_monmap_decode(void *p, void *end)
60 m->num_mon = num_mon; 60 m->num_mon = num_mon;
61 ceph_decode_copy(&p, m->mon_inst, num_mon*sizeof(m->mon_inst[0])); 61 ceph_decode_copy(&p, m->mon_inst, num_mon*sizeof(m->mon_inst[0]));
62 62
63 if (p != end)
64 goto bad;
65
66 dout("monmap_decode epoch %d, num_mon %d\n", m->epoch, 63 dout("monmap_decode epoch %d, num_mon %d\n", m->epoch,
67 m->num_mon); 64 m->num_mon);
68 for (i = 0; i < m->num_mon; i++) 65 for (i = 0; i < m->num_mon; i++)