Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331690
b: refs/heads/master
c: 3e8f43a
h: refs/heads/master
v: v3
  • Loading branch information
Yan, Zheng authored and Alex Elder committed Oct 1, 2012
1 parent 901d1cf commit e1afc7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e14b1a6c3b8d7e48ece68733d2dac0464611ee4
refs/heads/master: 3e8f43a089f06279c5f76a9ccd42578eebf7bfa5
3 changes: 2 additions & 1 deletion trunk/fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -2625,7 +2625,8 @@ static void check_new_map(struct ceph_mds_client *mdsc,
ceph_mdsmap_is_laggy(newmap, i) ? " (laggy)" : "",
session_state_name(s->s_state));

if (memcmp(ceph_mdsmap_get_addr(oldmap, i),
if (i >= newmap->m_max_mds ||
memcmp(ceph_mdsmap_get_addr(oldmap, i),
ceph_mdsmap_get_addr(newmap, i),
sizeof(struct ceph_entity_addr))) {
if (s->s_state == CEPH_MDS_SESSION_OPENING) {
Expand Down

0 comments on commit e1afc7f

Please sign in to comment.