mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
another little fixie
This commit is contained in:
@@ -32,8 +32,8 @@ public class ObjectMetaData implements Serializable {
|
||||
}
|
||||
|
||||
public Long getBestVersion() {
|
||||
if (_remoteCopies.isEmpty()) return 0L;
|
||||
return _remoteCopies.values().stream().max(Long::compareTo).get();
|
||||
if (_remoteCopies.isEmpty()) return getOurVersion();
|
||||
return Math.max(getOurVersion(), _remoteCopies.values().stream().max(Long::compareTo).get());
|
||||
}
|
||||
|
||||
public ObjectChangelog toRpcChangelog() {
|
||||
|
||||
Reference in New Issue
Block a user