]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: do not handle Python2 43705/head
authorKefu Chai <tchaikov@gmail.com>
Thu, 28 Oct 2021 15:41:58 +0000 (23:41 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 28 Oct 2021 15:41:59 +0000 (23:41 +0800)
this change should have been a part of
48c4bc445fcacd7980e84b4f135a3115b88b05f1

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/mgr/BaseMgrModule.cc

index 6386265fc7e919fa70bb43e18a53d7c7cd6669ec..2d851d46b2ac1523f6309221ce7768c2f5d77b55 100644 (file)
@@ -1263,11 +1263,7 @@ ceph_add_mds_perf_query(BaseMgrModule *self, PyObject *args)
           }
           limit->order_by = it->second;
         } else if (limit_param_name == NAME_LIMIT_MAX_COUNT) {
-#if PY_MAJOR_VERSION <= 2
-          if (!PyInt_Check(limit_param_val) && !PyLong_Check(limit_param_val)) {
-#else
           if (!PyLong_Check(limit_param_val)) {
-#endif
             derr << __func__ << " " << limit_param_name << " not an int"
                  << dendl;
             Py_RETURN_NONE;