Skip to content

Remove GroupCommitService#run synchronized code chunk #5051

@mxsm

Description

@mxsm

GroupCommitService#swapRequests has used lock

private void swapRequests() {
lock.lock();
try {
LinkedList<GroupCommitRequest> tmp = this.requestsWrite;
this.requestsWrite = this.requestsRead;
this.requestsRead = tmp;
} finally {
lock.unlock();
}
}

this code chunk used synchronized
synchronized (this) {
this.swapRequests();
}

synchronized can be removed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions