aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-04-25 20:06:47 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-04-25 20:06:47 +0000
commitbf6da4f3991f75358b232430540f15574a455d7e (patch)
tree607160a6ce237149368e94b44c460ee981e3b2fd
parentf67b6b896f421a7e0a95494398d46e1cdf9bc5f0 (diff)
downloadmpd-bf6da4f3991f75358b232430540f15574a455d7e.tar.gz
mpd-bf6da4f3991f75358b232430540f15574a455d7e.tar.xz
mpd-bf6da4f3991f75358b232430540f15574a455d7e.zip
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
-rw-r--r--src/directory.c3
1 files changed, 0 insertions, 3 deletions
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,