aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-06-17 17:19:01 -0400
committerSage Weil <sage@newdream.net>2010-08-01 23:11:40 -0400
commit0deb01c9998f8112c5e478e3fe3a930131abbc0a (patch)
tree1b98a08ce630949268c4f26d5f232d07acb5c7ba /fs/ceph/mds_client.c
parentcd84db6e4051a9fb7941d49d31a0193a3371fd61 (diff)
ceph: track laggy state of mds from mdsmap
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 774407f96ff1..6e40db2a0014 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2377,9 +2377,11 @@ static void check_new_map(struct ceph_mds_client *mdsc,
2377 oldstate = ceph_mdsmap_get_state(oldmap, i); 2377 oldstate = ceph_mdsmap_get_state(oldmap, i);
2378 newstate = ceph_mdsmap_get_state(newmap, i); 2378 newstate = ceph_mdsmap_get_state(newmap, i);
2379 2379
2380 dout("check_new_map mds%d state %s -> %s (session %s)\n", 2380 dout("check_new_map mds%d state %s%s -> %s%s (session %s)\n",
2381 i, ceph_mds_state_name(oldstate), 2381 i, ceph_mds_state_name(oldstate),
2382 ceph_mdsmap_is_laggy(oldmap, i) ? " (laggy)" : "",
2382 ceph_mds_state_name(newstate), 2383 ceph_mds_state_name(newstate),
2384 ceph_mdsmap_is_laggy(newmap, i) ? " (laggy)" : "",
2383 session_state_name(s->s_state)); 2385 session_state_name(s->s_state));
2384 2386
2385 if (memcmp(ceph_mdsmap_get_addr(oldmap, i), 2387 if (memcmp(ceph_mdsmap_get_addr(oldmap, i),