fix(kv): Don't stop when key not found from index.

pull/16851/head
Brett Buddin 2020-02-12 21:32:13 -05:00
parent a5f508de77
commit bd9167d383
No known key found for this signature in database
GPG Key ID: C51265E441C4C5AC
1 changed files with 6 additions and 4 deletions

View File

@ -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{}