Skip to content
  • Guido Trotter's avatar
    ganeti-masterd: init and distribute common context · 39dcf2ef
    Guido Trotter authored
    This patch creates a new GanetiContext class, which is used to hold
    context common to all ganeti worker threads. As for the
    GanetiLockingManager class it is paramount that there is only one such
    class throughout the execution of Ganeti, so the class checks for that,
    and also forbids its own modification after it's been initialized. The
    context for now contains a ConfigWriter and a GanetiLockingManager and
    is created by the daemon and propagated to PoolWorker(s) and
    JobRunner(s).
    
    Reviewed-by: iustinp
    39dcf2ef