Fix incorrect layered profile key
This commit is contained in:
@@ -47,6 +47,7 @@ func getRevisions(key string) ([]record.Record, error) {
|
||||
if profile == nil {
|
||||
return nil, errProfileNotActive
|
||||
}
|
||||
profiles = append(profiles, profile)
|
||||
}
|
||||
|
||||
records := make([]record.Record, 0, len(profiles))
|
||||
|
||||
@@ -125,7 +125,7 @@ func NewLayeredProfile(localProfile *Profile) *LayeredProfile {
|
||||
new.updateCaches()
|
||||
|
||||
new.CreateMeta()
|
||||
new.SetKey(runtime.DefaultRegistry.DatabaseName() + ":" + revisionProviderPrefix + localProfile.ID)
|
||||
new.SetKey(runtime.DefaultRegistry.DatabaseName() + ":" + revisionProviderPrefix + localProfile.ScopedID())
|
||||
|
||||
// Inform database subscribers about the new layered profile.
|
||||
new.Lock()
|
||||
|
||||
Reference in New Issue
Block a user