diff --git a/CHANGELOG.md b/CHANGELOG.md index 40fc2aa..11ffe7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Add lifecycle `type` and RFC3339 `last_run` support to `LifecycleInfo`, [PR-131](https://github.com/reductstore/reduct-cpp/pull/131) - Add lifecycle `compress` action support and rename lifecycle age field from `max_age` to `older_than` to match the ReductStore API, [PR-130](https://github.com/reductstore/reduct-cpp/pull/130) - Add lifecycle policy API support, [PR-128](https://github.com/reductstore/reduct-cpp/pull/128) diff --git a/src/reduct/client.h b/src/reduct/client.h index 2e13971..105b614 100644 --- a/src/reduct/client.h +++ b/src/reduct/client.h @@ -293,10 +293,12 @@ class IClient { enum class LifecycleMode { kEnabled, kDisabled, kDryRun }; struct LifecycleInfo { - std::string name; // Lifecycle name - LifecycleMode mode = LifecycleMode::kEnabled; // Lifecycle mode - bool is_provisioned; // Lifecycle is provisioned - bool is_running; // Lifecycle worker is running + std::string name; // Lifecycle name + LifecycleType type = LifecycleType::kDelete; // Lifecycle action type + LifecycleMode mode = LifecycleMode::kEnabled; // Lifecycle mode + bool is_provisioned; // Lifecycle is provisioned + bool is_running; // Lifecycle worker is running + std::optional