From df5f865773e4c431209e208d81bdf7530a745dde Mon Sep 17 00:00:00 2001 From: t-horikawa Date: Fri, 28 Feb 2025 17:51:43 +0900 Subject: [PATCH] feat: call backup completion notification of backup and backup_detail classes in limestone --- src/tateyama/datastore/service/core.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/tateyama/datastore/service/core.cpp b/src/tateyama/datastore/service/core.cpp index bd6fa8e7..c39657be 100644 --- a/src/tateyama/datastore/service/core.cpp +++ b/src/tateyama/datastore/service/core.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2018-2024 Project Tsurugi. + * Copyright 2018-2025 Project Tsurugi. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,6 @@ #include "altimeter_logger.h" #endif - namespace tateyama::datastore::service { using tateyama::api::server::request; @@ -105,13 +104,21 @@ bool tateyama::datastore::service::core::operator()(const std::shared_ptrend_backup(); if (backup_ || backup_detail_) { + if (backup_) { + backup_->backup().notify_end_backup(); + } + if (backup_detail_) { + backup_detail_->notify_end_backup(); + } rp.mutable_success(); res->session_id(req->session_id()); auto body = rp.SerializeAsString(); res->body(body); rp.clear_success(); backup_ = nullptr; + backup_detail_ = nullptr; } else { rp.mutable_expired(); }