Discovery: Add warning if returned etag is 0
authorMarkus Goetz <markus@woboq.com>
Thu, 2 Apr 2015 14:52:53 +0000 (16:52 +0200)
committerMarkus Goetz <markus@woboq.com>
Thu, 2 Apr 2015 14:57:53 +0000 (16:57 +0200)
There will be another bugfix which fixes
https://gist.github.com/jturcotte/3d5a7874d26bc27b1be9
directory.

src/libsync/discoveryphase.cpp

index 3fb2ca1f6ab7173dda95ff99ad6dae48e34b63fd..f68a6974b07410e232bb25bbc19671ed309552e9 100644 (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);
     }