Only use etag to know if we should use the db or not

Null file id might just mean the server don't support file id.
So use the database even if fileid is null
This commit is contained in:
Olivier Goffart 2013-10-30 17:35:55 +01:00
parent 0b5f1e6dd2
commit 8c4ecb4fba

View File

@ -440,7 +440,7 @@ static int _check_read_from_db(CSYNC *ctx, const char *uri) {
CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, "Compare directory ids for %s: %s -> %s", mpath, md5_local, md5_remote );
if( strlen(tmp->file_id) > 0 && c_streq(md5_local, md5_remote) ) {
if( c_streq(md5_local, md5_remote) ) {
ctx->remote.read_from_db = 1;
}
SAFE_FREE(md5_remote);