Skip to content

Commit

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

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

m := &influxdb.UserResourceMapping{}
Expand Down

0 comments on commit fc64f0f

Please sign in to comment.