Commit 752d8c9
committed
[Fix] Sync Tablet::_cumulative_point to TabletMeta::_cumulative_layer_point
This commit fixes the issue where the cumulative_layer_point in TabletMeta
was never synced with the in-memory _cumulative_point in Tablet, causing:
1. TabletMeta::_cumulative_layer_point was never updated after compaction
2. Tablet restart would lose the cumulative point progress
Changes:
- Tablet constructor now initializes _cumulative_point from TabletMeta
- Tablet::save_meta() now syncs _cumulative_point to TabletMeta before saving
Note: For snapshot/migration scenarios, the cumulative_layer_point will be
persisted when the new tablet meta is saved after copy.1 parent 9ec8abb commit 752d8c9
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
| |||
0 commit comments