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

meta_backup_service: modify backup_info's status when deleting it #9

Merged
merged 1 commit into from
Apr 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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