From a09ac4003aad8ee6c4c31f38b3b4c9fc207bbf33 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 19 Jul 2017 17:00:00 -0400 Subject: [PATCH] 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 --- src/librados/librados.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3