def delete_db(self, broker):
        """
        Ensure that reconciler databases are only cleaned up at the end of the
        replication run.
        """
        if (self.reconciler_cleanups is not None and
                broker.account == MISPLACED_OBJECTS_ACCOUNT):
            # this container shouldn't be here, make sure it's cleaned up
            self.reconciler_cleanups[broker.container] = broker
            return
        try:
            # DB is going to get deleted. Be preemptive about it
            self.sync_store.remove_synced_container(broker)
        except Exception:
            self.logger.exception('Failed to remove sync_store entry %s' %
                                  broker.db_file)

        return super(ContainerReplicator, self).delete_db(broker)
dataset/ETHPy150Open openstack/swift/swift/container/replicator.py/ContainerReplicator.delete_db/original