mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Merge pull request #19 from lippserd/bugfix/hmyield
HMYield(): handle missing values
This commit is contained in:
commit
cab03bd8f6
1 changed files with 5 additions and 0 deletions
|
|
@ -117,6 +117,11 @@ func (c *Client) HMYield(ctx context.Context, key string, count int, concurrent
|
|||
|
||||
g.Go(func() error {
|
||||
for i, v := range vals {
|
||||
if v == nil {
|
||||
c.logger.Warnf("HMGET %s: field %#v missing", key, batch[i])
|
||||
continue
|
||||
}
|
||||
|
||||
select {
|
||||
case pairs <- HPair{
|
||||
Field: batch[i],
|
||||
|
|
|
|||
Loading…
Reference in a new issue