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

refactor: remove useless function 'last_flushed_decree()' #1456

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

acelyc111
Copy link
Member

@acelyc111 acelyc111 commented Apr 19, 2023

#887

Function decree replication_app_base::last_flushed_decree() is useless
and the only one caller can be replaced, thus this patch remove it.

@github-actions github-actions bot added the cpp label Apr 19, 2023
@acelyc111 acelyc111 marked this pull request as ready for review April 19, 2023 08:46
@acelyc111 acelyc111 merged commit b676991 into apache:master Apr 20, 2023
@empiredan empiredan mentioned this pull request Aug 21, 2023
GehaFearless pushed a commit to GehaFearless/incubator-pegasus that referenced this pull request Feb 28, 2024
…pache#1456)

对应社区commit: https://github.com/apache/incubator-pegasus/pull/1456/files

apache#1383

This is a refactor patch before fixing apache#1383. This patch has no functionality
changes, but just including refactors:
1. Moves functions `load()`, `newr()` and `clear_on_failure()` from class replica
to class replica_stub, and the first two have been renamed to `load_replica()`
and `new_replica()`.
2. Encapsulates a new function `move_to_err_path`.
3. Some minor refactors like fix typo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants