Skip to content

Commit

Permalink
fix(kv): Don't stop when key not found from index.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettbuddin committed Feb 13, 2020
1 parent a5f508d commit bd9167d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions kv/urm.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,12 @@ func (s *Service) findUserResourceMappingsByIndex(ctx context.Context, tx Tx, fi

nv, err := bkt.Get(v)
if err != nil {
return nil, &influxdb.Error{
Code: influxdb.ENotFound,
Err: err,
}
s.log.Info(
"key not found",
zap.String("function", "findUserResourceMappingsByIndex"),
zap.String("key", string(v)),
)
continue
}

m := &influxdb.UserResourceMapping{}
Expand Down

0 comments on commit bd9167d

Please sign in to comment.