added remote termination clause for clearbit

This commit is contained in:
Todd Gruben 2016-10-18 15:10:02 -05:00
parent 8d27ae9c15
commit 2b6ef06e13

View file

@ -430,6 +430,10 @@ func (e *Executor) executeClearBit(db string, c *pql.ClearBit, opt *ExecOptions)
}
continue
}
// Do not forward call if this is already being forwarded.
if opt.Remote {
continue
}
// Forward call to remote node otherwise.
if res, err := e.exec(node, db, &pql.Query{Calls: pql.Calls{c}}, nil, opt); err != nil {