]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: explicitly show blacklisted state via asok status command 24994/head
authorZhi Zhang <willzzhang@tencent.com>
Wed, 10 Oct 2018 03:15:36 +0000 (11:15 +0800)
committerJonathan Brielmaier <jbrielmaier@suse.de>
Thu, 8 Nov 2018 16:19:55 +0000 (17:19 +0100)
It is easy for common users to understand why their clients not working
due to blacklisted state.

Fixes: http://tracker.ceph.com/issues/36352
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
(cherry picked from commit 0261506815e7e3f41656cc5fcf0461157e073179)
Signed-off-by: Jonathan Brielmaier <jbrielmaier@suse.de>
src/client/Client.cc

index fc99ad53bef945acddac43cc971a78a4e17319bf..119ae6eb47c1f8d7fdd75faa7c56ee00a7317dca 100644 (file)
@@ -456,6 +456,7 @@ void Client::dump_status(Formatter *f)
     f->dump_int("mds_epoch", mdsmap->get_epoch());
     f->dump_int("osd_epoch", osd_epoch);
     f->dump_int("osd_epoch_barrier", cap_epoch_barrier);
+    f->dump_bool("blacklisted", blacklisted);
   }
 }