another little fixie

This commit is contained in:
2024-06-19 23:27:15 +02:00
parent ecc909882a
commit 5ad26d56c0

View File

@@ -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() {