Skip to content

Commit

Permalink
[hotfix][cdc-rumtime][minor] Clean up useless code in BinaryRecordDat…
Browse files Browse the repository at this point in the history
…aSerializer (#2845)

Co-authored-by: xuyu <[email protected]>
(cherry picked from commit e6bb8e9)
  • Loading branch information
xuzifu666 authored and lvyanquan committed Jan 18, 2024
1 parent fac52dc commit e6be824
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public BinaryRecordData deserialize(BinaryRecordData reuse, DataInputView source
segments == null || (segments.length == 1 && reuse.getOffset() == 0),
"Reuse BinaryRecordData should have no segments or only one segment and offset start at 0.");

int arity = source.readInt();
int length = source.readInt();
if (segments == null || segments[0].size() < length) {
segments = new MemorySegment[] {MemorySegmentFactory.wrap(new byte[length])};
Expand Down

0 comments on commit e6be824

Please sign in to comment.