Set directory_dbModTime when writing the db, so that it will be set after

initial db creation.

git-svn-id: https://svn.musicpd.org/mpd/trunk@5948 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2007-04-25 20:34:30 +00:00
parent 179ab7efe8
commit ebaa3f4338

View File

@ -1091,6 +1091,7 @@ int writeDirectoryDB(void)
{
FILE *fp;
char *dbFile = getDbFile();
struct stat st;
DEBUG("removing empty directories from DB\n");
deleteEmptyDirectoriesInDirectory(mp3rootDirectory);
@ -1118,6 +1119,9 @@ int writeDirectoryDB(void)
while (fclose(fp) && errno == EINTR);
if (stat(dbFile, &st) == 0)
directory_dbModTime = st.st_mtime;
return 0;
}