]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: 'pg ls' is not a mgr command 16028/head
authorSage Weil <sage@redhat.com>
Wed, 19 Jul 2017 21:00:00 +0000 (17:00 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 19 Jul 2017 21:21:24 +0000 (17:21 -0400)
Note that this breaks the command *during* the mon upgrade from jewel ->
luminous, which is slightly annoying, but means we avoid proxying via the
mon after upgrade is complete, which is good and IMO more important.

In the future we may want librados to cache the command descriptions so
that commands can be directed automatically.

Signed-off-by: Sage Weil <sage@redhat.com>
src/librados/librados.cc

index b1002194a4f578079c2895c8abe98760bcc0b6dd..5a7af8e14b074d861d503eef270782b2db8d2f08 100644 (file)
@@ -2635,7 +2635,7 @@ namespace {
     };
     bufferlist inbl, outbl;
     string outstring;
-    int ret = client.mon_command(cmd, inbl, &outbl, &outstring);
+    int ret = client.mgr_command(cmd, inbl, &outbl, &outstring);
     if (ret) {
       return ret;
     }