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

feat: add rename_app interface #1272

Merged
merged 10 commits into from
Dec 14, 2022
Merged

Conversation

GehaFearless
Copy link
Contributor

issue: #1185

I want add a couple rpc to solve rename app.

src/shell/main.cpp Outdated Show resolved Hide resolved
src/shell/commands/table_management.cpp Outdated Show resolved Hide resolved
src/shell/commands/table_management.cpp Outdated Show resolved Hide resolved
src/replica/replica_config.cpp Outdated Show resolved Hide resolved
src/client/replication_ddl_client.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
@GehaFearless GehaFearless force-pushed the liguohao_rename branch 3 times, most recently from c1bef77 to 0517fe7 Compare December 2, 2022 08:02
src/replica/replica_config.cpp Outdated Show resolved Hide resolved
src/replica/replica_config.cpp Outdated Show resolved Hide resolved
src/replica/replica.h Outdated Show resolved Hide resolved
src/client/replication_ddl_client.cpp Outdated Show resolved Hide resolved
src/client/replication_ddl_client.cpp Outdated Show resolved Hide resolved
src/meta/test/meta_app_operation_test.cpp Show resolved Hide resolved
src/meta/test/meta_app_operation_test.cpp Show resolved Hide resolved
src/meta/test/meta_app_operation_test.cpp Outdated Show resolved Hide resolved
src/meta/test/meta_app_operation_test.cpp Show resolved Hide resolved
src/meta/test/meta_app_operation_test.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/shell/main.cpp Outdated Show resolved Hide resolved
src/client/replication_ddl_client.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/test/meta_app_operation_test.cpp Show resolved Hide resolved
src/meta/test/meta_app_operation_test.cpp Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
src/meta/server_state.cpp Outdated Show resolved Hide resolved
Copy link
Member

@acelyc111 acelyc111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -53,6 +53,15 @@
namespace dsn {
namespace replication {

#define VALIDATE_TABLE_NAME(app_name) \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inline bool validate_table_name(std::string app_name) {
   ...
}

I think it's better to implement it by inline func

@acelyc111 acelyc111 merged commit 2fe716b into apache:master Dec 14, 2022
@empiredan empiredan mentioned this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants