]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/DaemonServer.cc
update sources to 12.2.8
[ceph.git] / ceph / src / mgr / DaemonServer.cc
index 013b5fec622ad25e6cc97200979afa96ea732a7f..2f81e4054b7e549de4f3bda6dd2bcf0c152cb78f 100644 (file)
@@ -1084,8 +1084,7 @@ bool DaemonServer::handle_command(MCommand *m)
                auto p = pg_map.osd_stat.find(osd);
                if (p == pg_map.osd_stat.end()) {
                  missing_stats.insert(osd);
-               }
-               if (p->second.num_pgs > 0) {
+               } else if (p->second.num_pgs > 0) {
                  stored_pgs.insert(osd);
                }
              }