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;
{
const ScopeDatabaseLock protect;
contdir = MakeDirectoryIfModified(directory, name, info);
contdir = MakeVirtualDirectoryIfModified(directory, name,
info);
if (contdir == nullptr)
/* not modified */
return true;

View File

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

View File

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