From d2970feee82658a65361dedb51656d79ea2ef386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=82=8E=E6=B3=BC?= Date: Sun, 5 May 2024 15:51:02 +0800 Subject: [PATCH] Doc: add change-log 0.9.9 --- change-log.md | 23 +++++++++++++++++++++++ change-log/v0.9.9.md | 20 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 change-log/v0.9.9.md diff --git a/change-log.md b/change-log.md index d790fa654..b57d46ac1 100644 --- a/change-log.md +++ b/change-log.md @@ -1,3 +1,26 @@ +## v0.9.9 + +Summary: + +- Fixed: + - [8b62c797](https://github.com/datafuselabs/openraft/commit/8b62c797b343df5f496dc1b7c0264d09229e3b4a) Immediate response when snapshot installation is unnecessary. + +Detail: + +### Fixed: + +- Fixed: [8b62c797](https://github.com/datafuselabs/openraft/commit/8b62c797b343df5f496dc1b7c0264d09229e3b4a) Immediate response when snapshot installation is unnecessary; by 张炎泼; 2024-05-05 + + When `Engine::handle_install_full_snapshot()` is called and the provided + snapshot is not up-to-date, the snapshot should not be installed, and + the response should be sent back immediately. Previously, the method + might delay the response unnecessarily, waiting for an installation + process that would not proceed. + + This commit adjusts the logic so that if the snapshot is recognized as + outdated, it immediately returns a `None` `Condition`, ensuring the + caller is informed straightaway that no installation will occur. + ## v0.9.8 Summary: diff --git a/change-log/v0.9.9.md b/change-log/v0.9.9.md new file mode 100644 index 000000000..9b36a3bfe --- /dev/null +++ b/change-log/v0.9.9.md @@ -0,0 +1,20 @@ +Summary: + +- Fixed: + - [8b62c797](https://github.com/datafuselabs/openraft/commit/8b62c797b343df5f496dc1b7c0264d09229e3b4a) Immediate response when snapshot installation is unnecessary. + +Detail: + +### Fixed: + +- Fixed: [8b62c797](https://github.com/datafuselabs/openraft/commit/8b62c797b343df5f496dc1b7c0264d09229e3b4a) Immediate response when snapshot installation is unnecessary; by 张炎泼; 2024-05-05 + + When `Engine::handle_install_full_snapshot()` is called and the provided + snapshot is not up-to-date, the snapshot should not be installed, and + the response should be sent back immediately. Previously, the method + might delay the response unnecessarily, waiting for an installation + process that would not proceed. + + This commit adjusts the logic so that if the snapshot is recognized as + outdated, it immediately returns a `None` `Condition`, ensuring the + caller is informed straightaway that no installation will occur.