check file-hashes before content comparison
This commit is contained in:
parent
31ae7a6d3a
commit
fcf2d041cb
1 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,12 @@ public abstract class Config {
|
|||
}
|
||||
}
|
||||
|
||||
private boolean compareForSync(SyncFileHash syncFileHash, SyncFileHash syncFileHash1, FileContentWrapper content) {
|
||||
private boolean compareForSync(SyncFileHash clientHash, SyncFileHash serverHash, FileContentWrapper content) {
|
||||
//identical hashes => nothing to do
|
||||
if (clientHash.equals(serverHash)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return keeper.compareAndUpdateForSync(content);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue