aboutsummaryrefslogtreecommitdiff
path: root/weed/server/filer_server.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-07-23 10:50:28 -0700
committerchrislu <chris.lu@gmail.com>2022-07-23 10:50:28 -0700
commit64f3d6fb6e1acb007b3e4726962c7ea35bacc4c4 (patch)
tree30903fa25af0bcf797f93e354f68fb41216dc602 /weed/server/filer_server.go
parent2c8818351f418e3584a6c5410c396f747aebd725 (diff)
downloadseaweedfs-64f3d6fb6e1acb007b3e4726962c7ea35bacc4c4.tar.xz
seaweedfs-64f3d6fb6e1acb007b3e4726962c7ea35bacc4c4.zip
metadata subscription uses client epoch
Diffstat (limited to 'weed/server/filer_server.go')
-rw-r--r--weed/server/filer_server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/filer_server.go b/weed/server/filer_server.go
index 6bf0261ee..6ccb33996 100644
--- a/weed/server/filer_server.go
+++ b/weed/server/filer_server.go
@@ -88,7 +88,7 @@ type FilerServer struct {
// track known metadata listeners
knownListenersLock sync.Mutex
- knownListeners map[int32]struct{}
+ knownListeners map[int32]int32
brokers map[string]map[string]bool
brokersLock sync.Mutex
@@ -111,7 +111,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
fs = &FilerServer{
option: option,
grpcDialOption: security.LoadClientTLS(util.GetViper(), "grpc.filer"),
- knownListeners: make(map[int32]struct{}),
+ knownListeners: make(map[int32]int32),
brokers: make(map[string]map[string]bool),
inFlightDataLimitCond: sync.NewCond(new(sync.Mutex)),
}