Skip to content
  • Eloy Lafuente (stronk7)'s avatar
    53f95c99
    MDL-54205 backup: loggers close() and destroy() · 53f95c99
    Eloy Lafuente (stronk7) authored
    Any backup & restore operation may be leaving opened files
    if a file logger is being used. This implementes the close()
    method, so every logger can close any resource.
    
    Also, the recommended backup_controlled::destroy() method
    now calls to new logger::destroy() method in charge of
    deleting all the references and closing any resource.
    
    Finally, some internally used controllers, were missing
    their destroy call, leading to associated loggers to
    remain open. Now all them are explicitly deltroyed.
    53f95c99
    MDL-54205 backup: loggers close() and destroy()
    Eloy Lafuente (stronk7) authored
    Any backup & restore operation may be leaving opened files
    if a file logger is being used. This implementes the close()
    method, so every logger can close any resource.
    
    Also, the recommended backup_controlled::destroy() method
    now calls to new logger::destroy() method in charge of
    deleting all the references and closing any resource.
    
    Finally, some internally used controllers, were missing
    their destroy call, leading to associated loggers to
    remain open. Now all them are explicitly deltroyed.
Loading