sergey-chugunov-1985 commented on code in PR #1235:
URL: https://github.com/apache/ignite-3/pull/1235#discussion_r1012668359
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/raft/PartitionListener.java:
##########
@@ -205,15 +215,17 @@ private void handleUpdateCommand(UpdateCommand cmd, long
commandIndex) {
private void handleUpdateAllCommand(UpdateAllCommand cmd, long
commandIndex) {
storage.runConsistently(() -> {
UUID txId = cmd.txId();
- Map<RowId, BinaryRow> rowsToUpdate = cmd.getRowsToUpdate();
- UUID commitTblId = cmd.getReplicationGroupId().getTableId();
- int commitPartId = cmd.getReplicationGroupId().getPartId();
+ Map<UUID, ByteString> rowsToUpdate = cmd.rowsToUpdate();
+ UUID commitTblId = cmd.tablePartitionId().tableId();
+ int commitPartId = cmd.tablePartitionId().partitionId();
if (!CollectionUtils.nullOrEmpty(rowsToUpdate)) {
- for (Map.Entry<RowId, BinaryRow> entry :
rowsToUpdate.entrySet()) {
- RowId rowId = entry.getKey();
- BinaryRow row = entry.getValue();
-
+ for (Map.Entry<UUID, ByteString> entry :
rowsToUpdate.entrySet()) {
+ UUID rowIdUuid = entry.getKey();
+ RowId rowId = new RowId(partitionId,
rowIdUuid.getMostSignificantBits(), rowIdUuid.getLeastSignificantBits());
Review Comment:
Fixed.
--
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]