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