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