a few DEBUG statements
git-svn-id: https://svn.musicpd.org/mpd/trunk@2642 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
3dafd6ced0
commit
2c08fa619b
|
@ -979,9 +979,15 @@ void sortDirectory(Directory * directory) {
|
|||
int writeDirectoryDB() {
|
||||
FILE * fp;
|
||||
|
||||
DEBUG("removing empty directories from DB\n");
|
||||
deleteEmptyDirectoriesInDirectory(mp3rootDirectory);
|
||||
|
||||
DEBUG("sorting DB\n");
|
||||
|
||||
sortDirectory(mp3rootDirectory);
|
||||
|
||||
DEBUG("writing DB\n");
|
||||
|
||||
while(!(fp=fopen(directory_db,"w")) && errno==EINTR);
|
||||
if(!fp) return -1;
|
||||
|
||||
|
@ -1077,6 +1083,8 @@ int readDirectoryDB() {
|
|||
}
|
||||
}
|
||||
|
||||
DEBUG("reading DB\n");
|
||||
|
||||
readDirectoryInfo(fp,mp3rootDirectory);
|
||||
while(fclose(fp) && errno==EINTR);
|
||||
|
||||
|
|
|
@ -433,7 +433,7 @@ int main(int argc, char * argv[]) {
|
|||
|
||||
printMemorySavedByTagTracker();
|
||||
printSavedMemoryFromFilenames();
|
||||
printSavedMemoryFromDirectoryNames();
|
||||
/*printSavedMemoryFromDirectoryNames();*/
|
||||
|
||||
daemonize(&options);
|
||||
|
||||
|
|
|
@ -99,6 +99,8 @@ void sortTagTrackerInfo() {
|
|||
for(i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) {
|
||||
if(!tagLists[i]) continue;
|
||||
|
||||
DEBUG("sorting %s info\n", mpdTagItemKeys[i]);
|
||||
|
||||
sortList(tagLists[i]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue