From: Sage Weil Date: Wed, 19 Jul 2017 21:00:00 +0000 (-0400) Subject: librados: 'pg ls' is not a mgr command X-Git-Tag: v12.1.2~196^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a09ac4003aad8ee6c4c31f38b3b4c9fc207bbf33;p=ceph.git librados: 'pg ls' is not a mgr command 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 --- diff --git a/src/librados/librados.cc b/src/librados/librados.cc index b1002194a4f5..5a7af8e14b07 100644 --- a/src/librados/librados.cc +++ b/src/librados/librados.cc @@ -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; }