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

Commit

Permalink
meta_backup_service: modify backup_info's status when deleting it
Browse files Browse the repository at this point in the history
  • Loading branch information
LoveHeat committed Apr 12, 2018
1 parent 9cf596e commit 4f2d3f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dist/replication/meta_server/meta_backup_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,8 @@ void policy_context::gc_backup_info_unlocked(const backup_info &info_to_gc)
void policy_context::issue_gc_backup_info_task_unlocked()
{
if (_backup_history.size() > _policy.backup_history_count_to_keep) {
const backup_info &info = _backup_history.begin()->second;
backup_info &info = _backup_history.begin()->second;
info.info_status = backup_info_status::type::DELETING;
ddebug("%s: start to gc backup info with id(%" PRId64 ")",
_policy.policy_name.c_str(),
info.backup_id);
Expand Down

0 comments on commit 4f2d3f5

Please sign in to comment.