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

feat(bulk-load): sync bulk load from remote storage #553

Merged
merged 6 commits into from
Jul 14, 2020

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Jul 13, 2020

This pull request is about sync bulk load info from remote storage while starting meta server.

  • add _sync_bulk_load_storage to simplify code
  • add code for sync bulk load info from remote storage
  • add unit test

@hycdong hycdong marked this pull request as ready for review July 13, 2020 03:39
neverchanje
neverchanje previously approved these changes Jul 13, 2020
if (flag && children.size() > 0) {
ddebug_f("There are {} apps need to sync bulk load status", children.size());
for (const auto &elem : children) {
uint32_t app_id = boost::lexical_cast<uint32_t>(elem);
Copy link
Member

Choose a reason for hiding this comment

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

boost::lexical_cast will throw exception when cast failed, are you sure the cast always success for elem?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, elem is app_id

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants