state_store error if called without node_ids

This commit is contained in:
Lang Martin
2019-06-26 10:52:31 -04:00
parent 838460e70c
commit 3ad8a2498c

View File

@@ -680,7 +680,7 @@ func (s *StateStore) UpsertNode(index uint64, node *structs.Node) error {
// DeleteNode deregisters a batch of nodes
func (s *StateStore) DeleteNode(index uint64, nodes []string) error {
if len(nodes) == 0 {
return nil
return fmt.Errorf("node ids missing")
}
txn := s.db.Txn(true)