[#74] Replace atomics with mutex for reloadable params #84
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-http-gw#84
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "mbiryukova/frostfs-http-gw:feature/replace_atomics_with_mutex"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #74
Signed-off-by: Marina Biryukova m.biryukova@yadro.com
@ -0,0 +3,4 @@
import "sync"
// Settings stores reloading parameters, so it has to provide getters and setters which use RWMutex.
type Settings struct {
I'm not sure that implementation of
Config
interface should be in the same package. I would suggest move this tocmd/http-gw
the same as for s3-gw in TrueCloudLab/frostfs-s3-gw#20630e4f1cb68
tob8e06d7dbb
@ -23,1 +22,4 @@
type Config interface {
DefaultTimestamp() bool
SetDefaultTimestamp(val bool)
Why do we need setters now?
Removed
b8e06d7dbb
toe26577e753