Skip to content
Snippets Groups Projects
  • Vladimir Davydov's avatar
    1d3a6cb0
    box: serialize calls to box.cfg · 1d3a6cb0
    Vladimir Davydov authored
    It is dangerous to call box.cfg() concurrently from different fibers.
    For example, replication configuration uses static variables and yields
    so calling it concurrently can result in a crash. To make sure it never
    happens, let's protect box.cfg() with a lock.
    
    Closes #3606
    1d3a6cb0
    History
    box: serialize calls to box.cfg
    Vladimir Davydov authored
    It is dangerous to call box.cfg() concurrently from different fibers.
    For example, replication configuration uses static variables and yields
    so calling it concurrently can result in a crash. To make sure it never
    happens, let's protect box.cfg() with a lock.
    
    Closes #3606