Skip to content

Commit

Permalink
[hotfix] Rename BufferManager#unsynchronizedGetExclusiveBuffersUsed t…
Browse files Browse the repository at this point in the history
…o BufferManager#unsynchronizedGetAvailableExclusiveBuffers

This closes apache#12994.
  • Loading branch information
wsry authored and zhijiangW committed Aug 13, 2020
1 parent 1ff1266 commit 0fbe7a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ int getNumberOfAvailableBuffers() {
}
}

int unsynchronizedGetExclusiveBuffersUsed() {
int unsynchronizedGetAvailableExclusiveBuffers() {
return bufferQueue.exclusiveBuffers.size();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public int unsynchronizedGetNumberOfQueuedBuffers() {
}

public int unsynchronizedGetExclusiveBuffersUsed() {
return Math.max(0, initialCredit - bufferManager.unsynchronizedGetExclusiveBuffersUsed());
return Math.max(0, initialCredit - bufferManager.unsynchronizedGetAvailableExclusiveBuffers());
}

public int unsynchronizedGetFloatingBuffersAvailable() {
Expand Down

0 comments on commit 0fbe7a2

Please sign in to comment.