Fix for:
[src/mon/PGMonitor.cc:1514] -> [src/mon/PGMonitor.cc:1515]: (performance)
Variable 'pool' is reassigned a value before the old one has been used.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
prefix = "pg ls";
string poolstr;
cmd_getval(g_ceph_context, cmdmap, "poolstr", poolstr);
- int64_t pool = -2;
- pool = mon->osdmon()->osdmap.lookup_pg_pool_name(poolstr.c_str());
+ int64_t pool = mon->osdmon()->osdmap.lookup_pg_pool_name(poolstr.c_str());
if (pool < 0) {
r = -ENOENT;
ss << "pool " << poolstr << " does not exist";