summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-10-28 14:23:01 +0100
committerMax Kellermann <max@musicpd.org>2020-10-28 14:23:39 +0100
commitee802867dfa5d03b3c5e0fe4cebdaf2f6280c15b (patch)
treefc1c7b7a0d91b91be31f45cc2ae9c3d5b230b78a /src
parentecaa51e322095dce9ccc91984c605ffd8dd994ef (diff)
db/update/Walk: add code comments
Diffstat (limited to 'src')
-rw-r--r--src/db/update/Walk.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx
index 6ac12776e..fc4af265a 100644
--- a/src/db/update/Walk.cxx
+++ b/src/db/update/Walk.cxx
@@ -94,12 +94,16 @@ UpdateWalk::PurgeDeletedFromDirectory(Directory &directory) noexcept
{
directory.ForEachChildSafe([&](Directory &child){
if (child.IsMount())
+ /* mount points are always preserved */
return;
if (DirectoryExists(storage, child) &&
child.IsPluginAvailable())
return;
+ /* the directory was deleted (or the plugin which
+ handles this "virtual" directory is unavailable) */
+
editor.LockDeleteDirectory(&child);
modified = true;