projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
752727a
)
ceph: ignore trailing data in monamp
author
Sage Weil
<sage@newdream.net>
Mon, 12 Oct 2009 17:28:13 +0000
(10:28 -0700)
committer
Sage Weil
<sage@newdream.net>
Mon, 12 Oct 2009 17:29:24 +0000
(10:29 -0700)
This lets us extend the format more easily.
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mon_client.c
patch
|
blob
|
history
diff --git
a/fs/ceph/mon_client.c
b/fs/ceph/mon_client.c
index dc698caccc42787aee318c198f768c80649412d8..d6c8e783467ee05ae50e4f326aa6f4a5b62230a3 100644
(file)
--- 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)
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++)