Skip to content

Commit

Permalink
IGNITE-21280 Reserved new WAL record type (#11194)
Browse files Browse the repository at this point in the history
  • Loading branch information
sk0x50 authored Jan 25, 2024
1 parent 9400069 commit e4993b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ public enum RecordType {
CDC_MANAGER_RECORD(79, CUSTOM),

/** CDC manager record. */
CDC_MANAGER_STOP_RECORD(80, CUSTOM);
CDC_MANAGER_STOP_RECORD(80, CUSTOM),

/** Physical WAL record that represents a fragment of an entry update. (Placeholder) */
DATA_PAGE_FRAGMENTED_UPDATE_RECORD(81, PHYSICAL);

/** Index for serialization. Should be consistent throughout all versions. */
private final int idx;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
import static org.apache.ignite.internal.pagemem.wal.record.WALRecord.RecordType.CHECKPOINT_RECORD;
import static org.apache.ignite.internal.pagemem.wal.record.WALRecord.RecordType.CLUSTER_SNAPSHOT;
import static org.apache.ignite.internal.pagemem.wal.record.WALRecord.RecordType.CONSISTENT_CUT;
import static org.apache.ignite.internal.pagemem.wal.record.WALRecord.RecordType.DATA_PAGE_FRAGMENTED_UPDATE_RECORD;
import static org.apache.ignite.internal.pagemem.wal.record.WALRecord.RecordType.DATA_PAGE_INSERT_FRAGMENT_RECORD;
import static org.apache.ignite.internal.pagemem.wal.record.WALRecord.RecordType.DATA_PAGE_INSERT_RECORD;
import static org.apache.ignite.internal.pagemem.wal.record.WALRecord.RecordType.DATA_PAGE_REMOVE_RECORD;
Expand Down Expand Up @@ -274,7 +275,7 @@ public class RecordUtils {
put(INCREMENTAL_SNAPSHOT_FINISH_RECORD, RecordUtils::buildIncrementalSnapshotFinishRecord);
put(CDC_MANAGER_RECORD, RecordUtils::buildCdcManagerStopRecord);
put(CDC_MANAGER_STOP_RECORD, RecordUtils::buildCdcManagerStopRecord);

put(DATA_PAGE_FRAGMENTED_UPDATE_RECORD, buildUpsupportedWalRecord(DATA_PAGE_FRAGMENTED_UPDATE_RECORD));
}

/** */
Expand Down

0 comments on commit e4993b8

Please sign in to comment.