Skip to content

Commit

Permalink
rename the null value to compatible with C++ (#1705)
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingChen authored Jan 8, 2025
1 parent df6a19b commit 0d67762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</composite>
<type name="time_t" primitiveType="int64" description="Epoch time in milliseconds since 1 Jan 1970 UTC."/>
<enum name="ClusterComponentType" encodingType="int32" description="Type of Cluster Component">
<validValue name="NULL">0</validValue>
<validValue name="NONE">0</validValue>
<validValue name="CONSENSUS_MODULE">1</validValue>
<validValue name="CONTAINER">2</validValue>
<validValue name="BACKUP">3</validValue>
Expand Down

0 comments on commit 0d67762

Please sign in to comment.