mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
rewrite changelog only if update updates
This commit is contained in:
@@ -115,11 +115,13 @@ public class SyncHandler {
|
||||
// md.getBestVersion() > md.getTotalVersion() should also work
|
||||
if (receivedTotalVer > md.getOurVersion()) {
|
||||
invalidate.apply();
|
||||
md.getChangelog().clear();
|
||||
md.getChangelog().putAll(receivedMap);
|
||||
md.getChangelog().putIfAbsent(persistentRemoteHostsService.getSelfUuid(), 0L);
|
||||
return false;
|
||||
}
|
||||
|
||||
md.getChangelog().clear();
|
||||
md.getChangelog().putAll(receivedMap);
|
||||
md.getChangelog().putIfAbsent(persistentRemoteHostsService.getSelfUuid(), 0L);
|
||||
Log.warn("No action on update: " + header.getName() + " from " + from);
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -44,7 +44,7 @@ public class DhfsFuseIT {
|
||||
"-Ddhfs.objects.distributed.peerdiscovery.interval=100",
|
||||
"-Ddhfs.objects.distributed.invalidation.delay=100",
|
||||
"-Ddhfs.objects.ref_verification=true",
|
||||
"-Dquarkus.log.category.\"com.usatiuk.dhfs\".level=TRACE",
|
||||
"-Dquarkus.log.category.\\\"com.usatiuk.dhfs\\\".level=TRACE",
|
||||
"-jar", "/app/quarkus-run.jar")
|
||||
.build())
|
||||
.withFileFromPath("/app", Paths.get(buildPath, "quarkus-app"));
|
||||
|
||||
@@ -49,7 +49,7 @@ public class DhfsFusex3IT {
|
||||
"-Ddhfs.objects.distributed.invalidation.delay=100",
|
||||
"-Djava.util.concurrent.ForkJoinPool.common.parallelism=4",
|
||||
"-Ddhfs.objects.ref_verification=true",
|
||||
"-Dquarkus.log.category.\"com.usatiuk.dhfs\".level=TRACE",
|
||||
"-Dquarkus.log.category.\\\"com.usatiuk.dhfs\\\".level=TRACE",
|
||||
"-jar", "/app/quarkus-run.jar")
|
||||
.build())
|
||||
.withFileFromPath("/app", Paths.get(buildPath, "quarkus-app"));
|
||||
|
||||
Reference in New Issue
Block a user