Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

feat(bulk_load): add update compaction envs http interface #695

Merged
merged 11 commits into from
Dec 25, 2020

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Dec 18, 2020

This pull request adds the http interface for meta server to update app_envs of manual_compaction.

src/meta/meta_http_service.cpp Outdated Show resolved Hide resolved
src/meta/meta_http_service.cpp Show resolved Hide resolved
neverchanje
neverchanje previously approved these changes Dec 22, 2020
src/meta/test/meta_http_service_test.cpp Outdated Show resolved Hide resolved
src/meta/meta_http_service.cpp Outdated Show resolved Hide resolved
src/meta/meta_http_service.cpp Outdated Show resolved Hide resolved
Comment on lines +750 to +751
std::vector<std::string> keys;
std::vector<std::string> values;
Copy link
Member

Choose a reason for hiding this comment

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

There maybe problems when keys and values' size or order not matched, how about to use std::map ors std::pair?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In struct configuration_update_app_env_request, key and value is std::vector, so I also use it here, besides, function set_app_envs will check if keys.size is equal to values.size, if keys size is not equal to values size, it will set ERR_INVALID_PARAMETERS in response.

@hycdong hycdong merged commit 2218324 into XiaoMi:master Dec 25, 2020
@hycdong hycdong deleted the add_update_compaction_envs_http branch December 25, 2020 04:01
zhangyifan27 pushed a commit to zhangyifan27/rdsn that referenced this pull request Dec 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants