fix exclude leaf nid when sync stra

This commit is contained in:
710leo 2020-07-22 21:11:00 +08:00
parent 7abec2ccb8
commit d70e60d4a5
1 changed files with 6 additions and 0 deletions

View File

@ -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