Merge pull request #126 from umbel/clearbit_bug

added remote termination clause for clearbit
This commit is contained in:
tgruben 2016-10-18 15:54:42 -05:00 committed by GitHub
commit 53dc73a1ad

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 {