This was confusing ceph-mgr, which did a fsmap = new_fsmap
and found that old filesystems were never disappearing
after being removed.
Fixes: http://tracker.ceph.com/issues/21599
Signed-off-by: John Spray <john.spray@redhat.com>
standby_daemons(rhs.standby_daemons),
standby_epochs(rhs.standby_epochs)
{
+ filesystems.clear();
for (const auto &i : rhs.filesystems) {
const auto &fs = i.second;
filesystems[fs->fscid] = std::make_shared<Filesystem>(*fs);
standby_daemons = rhs.standby_daemons;
standby_epochs = rhs.standby_epochs;
+ filesystems.clear();
for (const auto &i : rhs.filesystems) {
const auto &fs = i.second;
filesystems[fs->fscid] = std::make_shared<Filesystem>(*fs);