forked from TrueCloudLab/frostfs-node
[#730] node/morph: Use disable_cache
config param
Do not init caches for eACL, containers and netmap if `disable_cache` config options is `true`, use direct RPC calls instead. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
c423aa432a
commit
e8665f6cef
10 changed files with 63 additions and 25 deletions
|
@ -127,6 +127,8 @@ type cfgGRPC struct {
|
|||
type cfgMorph struct {
|
||||
client *client.Client
|
||||
|
||||
disableCache bool
|
||||
|
||||
blockTimers []*timer.BlockTimer // all combined timers
|
||||
eigenTrustTimer *timer.BlockTimer // timer for EigenTrust iterations
|
||||
}
|
||||
|
@ -165,9 +167,9 @@ type cfgNodeInfo struct {
|
|||
}
|
||||
|
||||
type cfgObject struct {
|
||||
netMapStorage netmapCore.Source
|
||||
netMapSource netmapCore.Source
|
||||
|
||||
cnrStorage container.Source
|
||||
cnrSource container.Source
|
||||
|
||||
cnrClient *cntwrapper.Wrapper
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue