Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove redundant memcopy when reading raft snapshot #1264

Conversation

shuoranliu
Copy link
Member

This commit removes the redundant memcopy when reading raft snapshot.
The redundant memcopy makes reading snapshot very slow which leads to
snapshot send failure.

Signed-off-by: leonrayang chl696@sina.com
Reviewd-by: Shuoran Liu shuoranliu@gmail.com

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

This commit removes the redundant memcopy when reading raft snapshot.
The redundant memcopy makes reading snapshot very slow which leads to
snapshot send failure.

Signed-off-by: leonrayang <chl696@sina.com>
Reviewd-by: Shuoran Liu <shuoranliu@gmail.com>
@shuoranliu shuoranliu force-pushed the fix-raft-remove-redundant-memcpy-when-reading-snapshot branch from 4d2a338 to e18bf7b Compare November 17, 2021 06:45
@shuoranliu shuoranliu merged commit 7429730 into cubefs:master Nov 17, 2021
@shuoranliu shuoranliu deleted the fix-raft-remove-redundant-memcpy-when-reading-snapshot branch November 17, 2021 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants