fix exclude leaf nid when sync stra
This commit is contained in:
parent
7abec2ccb8
commit
d70e60d4a5
|
@ -269,6 +269,12 @@ func GetExclLeafIds(exclNid []int64) (leafIds []int64, err error) {
|
|||
if err != nil {
|
||||
return leafIds, err
|
||||
}
|
||||
|
||||
if node == nil {
|
||||
logger.Warningf("no such node[%d]", nid)
|
||||
continue
|
||||
}
|
||||
|
||||
ids, err := node.LeafIds()
|
||||
if err != nil {
|
||||
return leafIds, err
|
||||
|
|
Loading…
Reference in New Issue