You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Minimize lock duration during raft-log export (#15417)
* chore: fix snapshot-v2 versions
* refactor: Minimize lock duration during raft-log export
Optimize the locking mechanism in the raft-log export process.
Previously, the lock was held until the export was fully completed. With
this refactor:
- For raft-log exports: Release the lock immediately after transferring logs to memory.
- For snapshot exports: Release the lock once the snapshot file is opened.
This change reduces the time the lock is held, potentially improving performance and concurrency.
0 commit comments