Skip to content

Commit

Permalink
ceph: fix crush map update decoding
Browse files Browse the repository at this point in the history
If the incremental osdmap has a new crush map, advance the position after
decoding so that we can parse the rest of the osdmap properly.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Jun 17, 2010
1 parent ae32be3 commit cebc5be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ceph/osdmap.c
Original file line number Diff line number Diff line change
@@ -707,6 +707,7 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
newcrush = crush_decode(*p, min(*p+len, end));
if (IS_ERR(newcrush))
return ERR_CAST(newcrush);
*p += len;
}

/* new flags? */

0 comments on commit cebc5be

Please sign in to comment.