From 46456f73c586c949e359785238328c34e9984006 Mon Sep 17 00:00:00 2001 From: "guoan.chen" Date: Wed, 8 Jan 2025 10:44:09 +0800 Subject: [PATCH] rename the null value to compatible with C++ --- .../src/main/java/io/aeron/cluster/service/ClusterMarkFile.java | 2 +- .../src/main/resources/cluster/aeron-cluster-mark-codecs.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aeron-cluster/src/main/java/io/aeron/cluster/service/ClusterMarkFile.java b/aeron-cluster/src/main/java/io/aeron/cluster/service/ClusterMarkFile.java index 03eb7a0dfa..11ef022efc 100644 --- a/aeron-cluster/src/main/java/io/aeron/cluster/service/ClusterMarkFile.java +++ b/aeron-cluster/src/main/java/io/aeron/cluster/service/ClusterMarkFile.java @@ -178,7 +178,7 @@ else if (SemanticVersion.major(version) != MAJOR_VERSION) final ClusterComponentType existingType = headerDecoder.componentType(); - if (existingType != ClusterComponentType.NULL && existingType != type) + if (existingType != ClusterComponentType.NONE && existingType != type) { if (existingType != ClusterComponentType.BACKUP || ClusterComponentType.CONSENSUS_MODULE != type) { diff --git a/aeron-cluster/src/main/resources/cluster/aeron-cluster-mark-codecs.xml b/aeron-cluster/src/main/resources/cluster/aeron-cluster-mark-codecs.xml index 245d866322..a800f91180 100644 --- a/aeron-cluster/src/main/resources/cluster/aeron-cluster-mark-codecs.xml +++ b/aeron-cluster/src/main/resources/cluster/aeron-cluster-mark-codecs.xml @@ -23,7 +23,7 @@ - 0 + 0 1 2 3