Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
adixitconfluent committed Nov 15, 2024
1 parent 60974e0 commit 7c935b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/kafka/server/share/SharePartition.java
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ private Optional<Throwable> acknowledgeCompleteBatch(
protected void updateFetchOffsetMetadata(long nextFetchOffset, LogOffsetMetadata logOffsetMetadata) {
lock.writeLock().lock();
try {
fetchOffsetMetadata.updateFetchOffsetMetadata(nextFetchOffset, logOffsetMetadata);
fetchOffsetMetadata.updateOffsetMetadata(nextFetchOffset, logOffsetMetadata);
} finally {
lock.writeLock().unlock();
}
Expand Down Expand Up @@ -2440,7 +2440,7 @@ LogOffsetMetadata offsetMetadata() {
return offsetMetadata;
}

void updateFetchOffsetMetadata(long offset, LogOffsetMetadata offsetMetadata) {
void updateOffsetMetadata(long offset, LogOffsetMetadata offsetMetadata) {
this.offset = offset;
this.offsetMetadata = offsetMetadata;
}
Expand Down

0 comments on commit 7c935b1

Please sign in to comment.