Do not require server replies to contain an mtime

The check was added for #6317 in commit
13eb64584f.

We did see missing mtimes in replies in tests with live servers though.
Possibly those were old incomplete responses cached in the stat cache?
This commit is contained in:
Christian Kamm 2018-07-25 11:13:14 +02:00 committed by Camila San
parent 90d3917481
commit 5b228d1afd
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4

View file

@ -377,13 +377,11 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con
std::unique_ptr<csync_file_stat_t> file_stat(new csync_file_stat_t); std::unique_ptr<csync_file_stat_t> file_stat(new csync_file_stat_t);
file_stat->path = file.toUtf8(); file_stat->path = file.toUtf8();
file_stat->size = -1; file_stat->size = -1;
file_stat->modtime = -1;
propertyMapToFileStat(map, file_stat.get()); propertyMapToFileStat(map, file_stat.get());
if (file_stat->type == ItemTypeDirectory) if (file_stat->type == ItemTypeDirectory)
file_stat->size = 0; file_stat->size = 0;
if (file_stat->type == ItemTypeSkip if (file_stat->type == ItemTypeSkip
|| file_stat->size == -1 || file_stat->size == -1
|| file_stat->modtime == -1
|| file_stat->remotePerm.isNull() || file_stat->remotePerm.isNull()
|| file_stat->etag.isEmpty() || file_stat->etag.isEmpty()
|| file_stat->file_id.isEmpty()) { || file_stat->file_id.isEmpty()) {