• Miek Gieben's avatar
    plugin/file: load secondary zones lazily on startup (#2944) · 3a0c7c61
    Miek Gieben authored
    This fixes a long standing bug:
    fixes: #1609
    
    Load secondary zones in a go-routine; this required another mutex to
    protect some fields; I think those were needded anyway because a
    transfer can also happen when we're running; we just didn't have a test
    for that situation.
    
    The test had to be changed to wait for the transfer to happen at this is
    async now.
    Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
    3a0c7c61
setup.go 2.17 KB