forked from TrueCloudLab/frostfs-node
[#1118] neofs-node: add shard_ro_error_threshold
config setting
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
ed50cf6207
commit
e03cb91b64
6 changed files with 13 additions and 0 deletions
|
@ -58,3 +58,10 @@ func ShardPoolSize(c *config.Config) uint32 {
|
|||
|
||||
return ShardPoolSizeDefault
|
||||
}
|
||||
|
||||
// ShardErrorThreshold returns value of "shard_ro_error_threshold" config parameter from "storage" section.
|
||||
//
|
||||
// Returns 0 if the value is missing.
|
||||
func ShardErrorThreshold(c *config.Config) uint32 {
|
||||
return config.Uint32Safe(c.Sub(subsection), "shard_ro_error_threshold")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue