diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-12 05:08:12 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-12 05:27:34 -0700 |
commit | c7579ca2d8422f0172537e1ca7d1bd46edfc4f9d (patch) | |
tree | c45d0be2a1049ea0498e8c80716c105c869d9408 /src/audioOutputs | |
parent | c7fb996848715ee43f5df238aff75e561a4451b9 (diff) | |
download | mpd-c7579ca2d8422f0172537e1ca7d1bd46edfc4f9d.tar.gz mpd-c7579ca2d8422f0172537e1ca7d1bd46edfc4f9d.tar.xz mpd-c7579ca2d8422f0172537e1ca7d1bd46edfc4f9d.zip |
update: fix multiple deletes from *vec iterators
{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.
Diffstat (limited to 'src/audioOutputs')
0 files changed, 0 insertions, 0 deletions