mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-08 18:21:18 +08:00
disabling zombie logic
This commit is contained in:
@@ -185,7 +185,7 @@ func DeleteNodeByID(node *models.Node, exterminate bool) error {
|
|||||||
// ignoring for now, could hit a nil pointer if delete called twice
|
// ignoring for now, could hit a nil pointer if delete called twice
|
||||||
logger.Log(2, "attempted to remove node ACL for node", node.Name, node.ID)
|
logger.Log(2, "attempted to remove node ACL for node", node.Name, node.ID)
|
||||||
}
|
}
|
||||||
removeZombie <- node.ID
|
// removeZombie <- node.ID
|
||||||
if node.IsServer == "yes" {
|
if node.IsServer == "yes" {
|
||||||
return removeLocalServer(node)
|
return removeLocalServer(node)
|
||||||
}
|
}
|
||||||
@@ -288,7 +288,7 @@ func CreateNode(node *models.Node) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
CheckZombies(node)
|
// CheckZombies(node)
|
||||||
|
|
||||||
nodebytes, err := json.Marshal(&node)
|
nodebytes, err := json.Marshal(&node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@@ -17,8 +17,8 @@ const (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
zombies []string
|
zombies []string
|
||||||
removeZombie chan string = make(chan (string))
|
removeZombie chan string = make(chan (string), 10)
|
||||||
newZombie chan string = make(chan (string))
|
newZombie chan string = make(chan (string), 10)
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckZombies - checks if new node has same macaddress as existing node
|
// CheckZombies - checks if new node has same macaddress as existing node
|
||||||
|
Reference in New Issue
Block a user