• Eric Wong's avatar
    update: fix multiple deletes from *vec iterators · d52437d4
    Eric Wong authored
    {song,dir}vec_for_each each failed to gracefully handle deleted
    files when iterating through.  While we were thread-safe, we
    were not safe within the calling thread.  If a callback we
    passed caused sv->nr to shring, our index would still increment;
    causing files to stay in the database.
    
    A way to test this is to remove 10 or so contiguous songs from a
    >10 song directory.
    d52437d4
dirvec.c 2.53 KB