Browse Source
docs(meta_cache): readability fixes (#3691)
Signed-off-by: Ryan Russell <git@ryanrussell.org>
Signed-off-by: Ryan Russell <git@ryanrussell.org>
pull/3693/head
Ryan Russell
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
weed/mount/meta_cache/cache_config.go
-
weed/mount/meta_cache/meta_cache_subscribe.go
|
@ -6,7 +6,7 @@ var ( |
|
|
_ = util.Configuration(&cacheConfig{}) |
|
|
_ = util.Configuration(&cacheConfig{}) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
// implementing util.Configuraion
|
|
|
|
|
|
|
|
|
// implementing util.Configuration
|
|
|
type cacheConfig struct { |
|
|
type cacheConfig struct { |
|
|
dir string |
|
|
dir string |
|
|
} |
|
|
} |
|
|
|
@ -46,7 +46,7 @@ func SubscribeMetaEvents(mc *MetaCache, selfSignature int32, client filer_pb.Fil |
|
|
mc.invalidateFunc(newKey, message.NewEntry) |
|
|
mc.invalidateFunc(newKey, message.NewEntry) |
|
|
} |
|
|
} |
|
|
} else if filer_pb.IsCreate(resp) { |
|
|
} else if filer_pb.IsCreate(resp) { |
|
|
// no need to invaalidate
|
|
|
|
|
|
|
|
|
// no need to invalidate
|
|
|
} else if filer_pb.IsDelete(resp) { |
|
|
} else if filer_pb.IsDelete(resp) { |
|
|
oldKey := util.NewFullPath(resp.Directory, message.OldEntry.Name) |
|
|
oldKey := util.NewFullPath(resp.Directory, message.OldEntry.Name) |
|
|
mc.invalidateFunc(oldKey, message.OldEntry) |
|
|
mc.invalidateFunc(oldKey, message.OldEntry) |
|
|