Skip to content

Commit 3d35ca9

Browse files
committed
Doc: add change-log 0.9.17
1 parent dc18dc6 commit 3d35ca9

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

change-log.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1+
## v0.9.17
2+
3+
Summary:
4+
5+
- Improved:
6+
- [536a435e](https://github.com/datafuselabs/openraft/commit/536a435e2fccc98c37a776322d0f7e4aba26c179) Chunk read log entry and check range on startup.
7+
- [dc18dc6f](https://github.com/datafuselabs/openraft/commit/dc18dc6f5fed49c1a4717133fbc489eb57efda79) remove `Copy` bound from `NodeId`.
8+
9+
Detail:
10+
11+
### Improved:
12+
13+
- Improved: [536a435e](https://github.com/datafuselabs/openraft/commit/536a435e2fccc98c37a776322d0f7e4aba26c179) Chunk read log entry and check range on startup; by 张炎泼; 2024-09-14
14+
15+
- Implement chunk-based reading of committed log entries when
16+
re-applying to state machine upon startup.
17+
18+
- Add validation for log entry indexes, to avoid applying wrong entries
19+
to state machine.
20+
21+
- Improved: [dc18dc6f](https://github.com/datafuselabs/openraft/commit/dc18dc6f5fed49c1a4717133fbc489eb57efda79) remove `Copy` bound from `NodeId`; by 张炎泼; 2024-10-14
22+
23+
The `NodeId` type is currently defined as:
24+
25+
```rust
26+
type NodeId: .. + Copy + .. + 'static;
27+
```
28+
29+
This commit removes the `Copy` bound from `NodeId`.
30+
This modification will allow the use of non-`Copy` types as `NodeId`,
31+
providing greater flexibility for applications that prefer
32+
variable-length strings or other non-`Copy` types for node
33+
identification.
34+
35+
This change maintain compatibility by updating derived `Copy`
36+
implementations with manual implementations:
37+
38+
```rust
39+
// Before
40+
#[derive(Copy...)]
41+
pub struct LogId<NID: NodeId> {}
42+
43+
// After
44+
impl<NID: Copy> Copy for LogId<NID> {}
45+
```
46+
147
## v0.9.16
248

349
Summary:

change-log/v0.9.17.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Summary:
2+
3+
- Improved:
4+
- [536a435e](https://github.com/datafuselabs/openraft/commit/536a435e2fccc98c37a776322d0f7e4aba26c179) Chunk read log entry and check range on startup.
5+
- [dc18dc6f](https://github.com/datafuselabs/openraft/commit/dc18dc6f5fed49c1a4717133fbc489eb57efda79) remove `Copy` bound from `NodeId`.
6+
7+
Detail:
8+
9+
### Improved:
10+
11+
- Improved: [536a435e](https://github.com/datafuselabs/openraft/commit/536a435e2fccc98c37a776322d0f7e4aba26c179) Chunk read log entry and check range on startup; by 张炎泼; 2024-09-14
12+
13+
- Implement chunk-based reading of committed log entries when
14+
re-applying to state machine upon startup.
15+
16+
- Add validation for log entry indexes, to avoid applying wrong entries
17+
to state machine.
18+
19+
- Improved: [dc18dc6f](https://github.com/datafuselabs/openraft/commit/dc18dc6f5fed49c1a4717133fbc489eb57efda79) remove `Copy` bound from `NodeId`; by 张炎泼; 2024-10-14
20+
21+
The `NodeId` type is currently defined as:
22+
23+
```rust
24+
type NodeId: .. + Copy + .. + 'static;
25+
```
26+
27+
This commit removes the `Copy` bound from `NodeId`.
28+
This modification will allow the use of non-`Copy` types as `NodeId`,
29+
providing greater flexibility for applications that prefer
30+
variable-length strings or other non-`Copy` types for node
31+
identification.
32+
33+
This change maintain compatibility by updating derived `Copy`
34+
implementations with manual implementations:
35+
36+
```rust
37+
// Before
38+
#[derive(Copy...)]
39+
pub struct LogId<NID: NodeId> {}
40+
41+
// After
42+
impl<NID: Copy> Copy for LogId<NID> {}
43+
```

0 commit comments

Comments
 (0)