aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_remote_gateway.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2021-12-30 00:23:57 -0800
committerchrislu <chris.lu@gmail.com>2021-12-30 00:23:57 -0800
commit5c87fcc6d28b230154db35cbe7735a5f1b84024f (patch)
treeaccf7f2221083bb3aec27c5ba60b24570349b85d /weed/command/filer_remote_gateway.go
parentfb434318e36ac8e78ab304bfd5421f110c10bdf1 (diff)
downloadseaweedfs-5c87fcc6d28b230154db35cbe7735a5f1b84024f.tar.xz
seaweedfs-5c87fcc6d28b230154db35cbe7735a5f1b84024f.zip
add client id for all metadata listening clients
Diffstat (limited to 'weed/command/filer_remote_gateway.go')
-rw-r--r--weed/command/filer_remote_gateway.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/filer_remote_gateway.go b/weed/command/filer_remote_gateway.go
index fa0239558..33454f378 100644
--- a/weed/command/filer_remote_gateway.go
+++ b/weed/command/filer_remote_gateway.go
@@ -28,6 +28,7 @@ type RemoteGatewayOptions struct {
mappings *remote_pb.RemoteStorageMapping
remoteConfs map[string]*remote_pb.RemoteConf
bucketsDir string
+ clientId int32
}
var _ = filer_pb.FilerClient(&RemoteGatewayOptions{})
@@ -54,6 +55,7 @@ func init() {
remoteGatewayOptions.timeAgo = cmdFilerRemoteGateway.Flag.Duration("timeAgo", 0, "start time before now. \"300ms\", \"1.5h\" or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"")
remoteGatewayOptions.include = cmdFilerRemoteGateway.Flag.String("include", "", "pattens of new bucket names, e.g., s3*")
remoteGatewayOptions.exclude = cmdFilerRemoteGateway.Flag.String("exclude", "", "pattens of new bucket names, e.g., local*")
+ remoteGatewayOptions.clientId = util.RandomInt32()
}
var cmdFilerRemoteGateway = &Command{