db/update/VirtualDirectory: rename MakeDirectoryIfModified()

This commit is contained in:
Max Kellermann 2019-09-03 19:49:10 +02:00
parent e08298a66f
commit a873137702
3 changed files with 7 additions and 5 deletions

View File

@ -45,7 +45,8 @@ UpdateWalk::UpdateContainerFile(Directory &directory,
Directory *contdir; Directory *contdir;
{ {
const ScopeDatabaseLock protect; const ScopeDatabaseLock protect;
contdir = MakeDirectoryIfModified(directory, name, info); contdir = MakeVirtualDirectoryIfModified(directory, name,
info);
if (contdir == nullptr) if (contdir == nullptr)
/* not modified */ /* not modified */
return true; return true;

View File

@ -22,8 +22,8 @@
#include "storage/FileInfo.hxx" #include "storage/FileInfo.hxx"
Directory * Directory *
UpdateWalk::MakeDirectoryIfModified(Directory &parent, const char *name, UpdateWalk::MakeVirtualDirectoryIfModified(Directory &parent, const char *name,
const StorageFileInfo &info) noexcept const StorageFileInfo &info) noexcept
{ {
Directory *directory = parent.FindChild(name); Directory *directory = parent.FindChild(name);

View File

@ -142,8 +142,9 @@ private:
* *
* The caller must lock the database. * The caller must lock the database.
*/ */
Directory *MakeDirectoryIfModified(Directory &parent, const char *name, Directory *MakeVirtualDirectoryIfModified(Directory &parent,
const StorageFileInfo &info) noexcept; const char *name,
const StorageFileInfo &info) noexcept;
Directory *DirectoryMakeChildChecked(Directory &parent, Directory *DirectoryMakeChildChecked(Directory &parent,
const char *uri_utf8, const char *uri_utf8,