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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyifan27 committed Mar 8, 2021
1 parent 04c8d24 commit a56e055
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/common/backup.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ struct start_backup_app_request

struct start_backup_app_response
{
// Possible error:
// - ERR_INVALID_STATE: app is not available or is backing up
// - ERR_INVALID_PARAMETERS: backup provider type is invalid
// - ERR_SERVICE_NOT_ACTIVE: meta doesn't enable backup service
1:dsn.error_code err;
2:string hint_message;
}
2 changes: 1 addition & 1 deletion src/meta/backup_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ error_code backup_engine::set_block_service(const std::string &provider)
return ERR_OK;
}

error_code backup_engine::run() { return ERR_OK; }
error_code backup_engine::start() { return ERR_OK; }

bool backup_engine::is_backing_up()
{
Expand Down
4 changes: 2 additions & 2 deletions src/meta/backup_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ class backup_engine
error_code init_backup(int32_t app_id);
error_code set_block_service(const std::string &provider);

error_code run();
error_code start();

int64_t get_current_backup_id() const { return _cur_backup.backup_id; }
int32_t get_backup_app_id() const { return _cur_backup.app_id; }
bool is_backing_up() const;
bool is_backing_up();

private:
error_code get_app_stat(int32_t app_id, std::shared_ptr<app_state> &app);
Expand Down

0 comments on commit a56e055

Please sign in to comment.