#include <accounts_cleaner.h>
◆ MySQLAccountsCleaner()
  
  
      
        
          | mysqlrouter::MySQLAccountsCleaner::MySQLAccountsCleaner  | 
          ( | 
          std::ostream &  | 
          err_stream | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ ~MySQLAccountsCleaner()
  
  
      
        
          | mysqlrouter::MySQLAccountsCleaner::~MySQLAccountsCleaner  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ clear()
  
  
      
        
          | void mysqlrouter::MySQLAccountsCleaner::clear  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ make_account_list()
      
        
          | std::string MySQLAccountsCleaner::make_account_list  | 
          ( | 
          const std::string  | 
          username,  | 
        
        
           | 
           | 
          const std::set< std::string > &  | 
          hostnames  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ register_tmp_undo_account_list()
  
  
      
        
          | void mysqlrouter::MySQLAccountsCleaner::register_tmp_undo_account_list  | 
          ( | 
          const UndoCreateAccountList &  | 
          account_list | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ register_undo_account_list()
  
  
      
        
          | void mysqlrouter::MySQLAccountsCleaner::register_undo_account_list  | 
          ( | 
          const UndoCreateAccountList &  | 
          account_list | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ set_session()
  
  
      
        
          | void mysqlrouter::MySQLAccountsCleaner::set_session  | 
          ( | 
          MySQLSession *  | 
          session | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ undo_create_user_for_new_accounts()
  
  
      
        
          | void MySQLAccountsCleaner::undo_create_user_for_new_accounts  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
noexcept   | 
  
 
Deletes Router accounts just created. 
This method runs as a cleanup after something goes wrong. Its purpose is to undo CREATE USER [IF NOT EXISTS] for accounts that got created during bootstrap. Note that it will drop only those accounts which did not exist prior to bootstrap (it may be a subset of account names passed to CREATE USER [IF NOT EXISTS]). If it is not able to determine what this (sub)set is, it will not drop anything - instead it will advise user on how to clean those up manually. 
 
 
◆ err_stream_
  
  
      
        
          | std::ostream& mysqlrouter::MySQLAccountsCleaner::err_stream_ | 
         
       
   | 
  
private   | 
  
 
 
◆ session_
◆ tmp_undo_create_account_list_
◆ undo_create_account_list_
The documentation for this class was generated from the following files: