]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix kcephfs parse dirfrag's ndist is always 0 37177/head
authorYanhu Cao <gmayyyha@gmail.com>
Tue, 11 Aug 2020 02:11:48 +0000 (10:11 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 16 Sep 2020 03:24:35 +0000 (20:24 -0700)
Fixes: https://tracker.ceph.com/issues/46891
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
(cherry picked from commit f92c4963a31303be589d9657debe386aa3e310b0)

src/mds/CDir.h

index a3c89d51aecb3470f4a24270e6eca735f0e32a2e..23c94c8bacb011258be0c137bd5fcfd5b1261cb7 100644 (file)
@@ -554,7 +554,7 @@ private:
 
   // for giving to clients
   void get_dist_spec(std::set<mds_rank_t>& ls, mds_rank_t auth) {
-    if (is_rep()) {
+    if (is_auth()) {
       list_replicas(ls);
       if (!ls.empty()) 
        ls.insert(auth);