-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42605fc
commit d2970fe
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |