mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(lcnode): hybrid cloud snapshot apply on lcnode
1. add firstDentry may cause panic if channel close 2. reset snapshot verinfos before add verinfo 3. add TaskResults in GetOneTask to avoid adding tasks repeatedly 4. support notify multi snapshot tasks 5. delete snapshot failed retry Signed-off-by: zhaochenyang <zhaochenyang@oppo.com>
This commit is contained in:
parent
e62a84fb95
commit
3a0c807faf
@ -35,7 +35,7 @@ func newSnapshotManager() *snapshotDelManager {
|
||||
snapshotMgr := &snapshotDelManager{
|
||||
lcSnapshotTaskStatus: newLcSnapshotVerStatus(),
|
||||
lcNodeStatus: newLcNodeStatus(),
|
||||
idleNodeCh: make(chan struct{}, 1000), // support notify multi snapshot tasks
|
||||
idleNodeCh: make(chan struct{}, 20), // support notify multi snapshot tasks
|
||||
exitCh: make(chan struct{}),
|
||||
}
|
||||
return snapshotMgr
|
||||
|
||||
Loading…
Reference in New Issue
Block a user