Skip to content

Commit

Permalink
HDDS-9844. [hsync] De-synchronize write APIs (#6859)
Browse files Browse the repository at this point in the history
  • Loading branch information
duongkame authored Jul 15, 2024
1 parent aa3c24e commit d8ea69d
Show file tree
Hide file tree
Showing 13 changed files with 588 additions and 334 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ synchronized void updateCommitInfoMap(long index, List<BUFFER> buffers) {
}

/** @return the total data which has been acknowledged. */
long getTotalAckDataLength() {
synchronized long getTotalAckDataLength() {
return totalAckDataLength;
}

Expand Down Expand Up @@ -166,7 +166,7 @@ List<BUFFER> remove(long i) {
/** Release the buffers for the given index. */
abstract void releaseBuffers(long index);

void adjustBuffers(long commitIndex) {
synchronized void adjustBuffers(long commitIndex) {
commitIndexMap.keySet().stream()
.filter(p -> p <= commitIndex)
.forEach(this::releaseBuffers);
Expand Down
Loading

0 comments on commit d8ea69d

Please sign in to comment.