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 (apache#2845)

Co-authored-by: xuyu <11161569@vivo.com>
  • Loading branch information
2 people authored and joyCurry30 committed Mar 22, 2024
1 parent b4ce972 commit b54b1b8
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 b54b1b8

Please sign in to comment.