Discovery: Add warning if returned etag is 0

There will be another bugfix which fixes
https://gist.github.com/jturcotte/3d5a7874d26bc27b1be9
directory.
This commit is contained in:
Markus Goetz 2015-04-02 16:52:53 +02:00
parent 9b9f0bdd4d
commit 7f2213416a

View file

@ -270,6 +270,9 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file,QMap
csync_vio_file_stat_t *file_stat = propertyMapToFileStat(map);
file_stat->name = strdup(file.toUtf8());
if (!file_stat->etag || strlen(file_stat->etag) == 0) {
qDebug() << "WARNING: etag of" << file_stat->name << "is" << file_stat->etag << " This must not happen.";
}
//qDebug() << "!!!!" << file_stat << file_stat->name << file_stat->file_id << map.count();
_results.append(file_stat);
}