From bf6da4f3991f75358b232430540f15574a455d7e Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Wed, 25 Apr 2007 20:06:47 +0000 Subject: initMp3Directory() is only called when (re)creating the db, but before the db file is written. So don't try to set directory_dbModTime to the mtime of the db file, since it will be incorrect. git-svn-id: https://svn.musicpd.org/mpd/trunk@5945 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/directory.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/directory.c b/src/directory.c index 14b73ee6c..82c5c72f0 100644 --- a/src/directory.c +++ b/src/directory.c @@ -1318,9 +1318,6 @@ void initMp3Directory(void) freeAllDirectoryStats(mp3rootDirectory); stats.numberOfSongs = countSongsIn(STDERR_FILENO, NULL); stats.dbPlayTime = sumSongTimesIn(STDERR_FILENO, NULL); - - if (stat(getDbFile(), &st) == 0) - directory_dbModTime = st.st_mtime; } static Song *getSongDetails(char *file, char **shortnameRet, -- cgit v1.2.3