db/simple/Save: move log call to SimpleDatabase::Load()

This commit is contained in:
Max Kellermann 2016-10-29 10:00:35 +02:00
parent 90a14e14f4
commit 318d0b3976
2 changed files with 2 additions and 4 deletions

View File

@ -20,7 +20,6 @@
#include "config.h"
#include "DatabaseSave.hxx"
#include "db/DatabaseLock.hxx"
#include "db/DatabaseError.hxx"
#include "Directory.hxx"
#include "DirectorySave.hxx"
#include "fs/io/BufferedOutputStream.hxx"
@ -30,7 +29,6 @@
#include "fs/Charset.hxx"
#include "util/StringCompare.hxx"
#include "util/RuntimeError.hxx"
#include "Log.hxx"
#include <string.h>
#include <stdlib.h>
@ -129,8 +127,6 @@ db_load_internal(TextFile &file, Directory &music_root)
throw std::runtime_error("Tag list mismatch, "
"discarding database file");
LogDebug(db_domain, "reading DB");
const ScopeDatabaseLock protect;
directory_load(file, music_root);
}

View File

@ -150,6 +150,8 @@ SimpleDatabase::Load()
TextFile file(path);
LogDebug(simple_db_domain, "reading DB");
db_load_internal(file, *root);
FileInfo fi;