aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Container.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-31 22:17:49 +0100
committerMax Kellermann <max@duempel.org>2014-01-31 22:17:49 +0100
commit26970579b86c4dfb8e7a11cbc12edac670e4f0e2 (patch)
tree4f859ab8b534fb3d2fc637624cc4c412797a1efd /src/db/update/Container.cxx
parent04b4f534889719fd822aff5cf9b78a50d1da47ad (diff)
downloadmpd-26970579b86c4dfb8e7a11cbc12edac670e4f0e2.tar.gz
mpd-26970579b86c4dfb8e7a11cbc12edac670e4f0e2.tar.xz
mpd-26970579b86c4dfb8e7a11cbc12edac670e4f0e2.zip
db/update/Editor: add locking method variants
Diffstat (limited to '')
-rw-r--r--src/db/update/Container.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/db/update/Container.cxx b/src/db/update/Container.cxx
index 38aacea0a..33e29953d 100644
--- a/src/db/update/Container.cxx
+++ b/src/db/update/Container.cxx
@@ -118,9 +118,7 @@ UpdateWalk::UpdateContainerFile(Directory &directory,
}
if (tnum == 1) {
- db_lock();
- editor.DeleteDirectory(contdir);
- db_unlock();
+ editor.LockDeleteDirectory(contdir);
return false;
} else
return true;