]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: fix random mds selection bug
authorSage Weil <sage@newdream.net>
Thu, 11 Sep 2008 23:57:37 +0000 (16:57 -0700)
committerSage Weil <sage@newdream.net>
Thu, 11 Sep 2008 23:58:27 +0000 (16:58 -0700)
src/kernel/mdsmap.c

index 1b7ca0e87d42dfc67edcd9e70bca307944bee8a3..c9ff637ea4c7bbb2512c610540833789bf224afb 100644 (file)
@@ -29,7 +29,7 @@ int ceph_mdsmap_get_random_mds(struct ceph_mdsmap *m)
 
        /* count */
        for (i = 0; i < m->m_max_mds; i++)
-               if (m->m_state > 0)
+               if (m->m_state[i] > 0)
                        n++;
        if (n == 0)
                return -1;