wernerdv commented on code in PR #13409:
URL: https://github.com/apache/ignite/pull/13409#discussion_r3690197061
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/metastorage/persistence/DistributedMetaStorageImpl.java:
##########
@@ -564,22 +564,10 @@ private void
onMetaStorageReadyForWrite(ReadWriteMetastorage metastorage) {
lock.readLock().lock();
try {
- if (isClient) {
- Serializable data = new DistributedMetaStorageJoiningNodeData(
- getBaselineTopologyId(),
- ver,
- EMPTY_ARRAY
- );
-
- dataBag.addJoiningNodeData(COMPONENT_ID, data);
-
- return;
- }
-
- Serializable data = new DistributedMetaStorageJoiningNodeData(
+ var data = new DistributedMetaStorageJoiningNodeData(
getBaselineTopologyId(),
ver,
- histCache.toArray()
+ isClient ? EMPTY_ARRAY : histCache.toArray()
);
dataBag.addJoiningNodeData(COMPONENT_ID, data);
Review Comment:
```suggestion
dataBag.addJoiningNodeData(COMPONENT_ID, new
DistributedMetaStorageJoiningNodeData(
getBaselineTopologyId(), ver, isClient ? EMPTY_ARRAY :
histCache.toArray()));
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]