diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-01-02 01:11:27 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-02 01:11:27 -0800 |
| commit | 077f831749e6bbf12ff52fd369b493e4dd751817 (patch) | |
| tree | 81912d857c0dcc0dba64661aa8f06ba81e68a40a /weed/command/filer_remote_gateway.go | |
| parent | 9b941773805400c520558d83aed633adc821988c (diff) | |
| parent | 42c849e0df74610d38453db67670db715ceb80aa (diff) | |
| download | seaweedfs-077f831749e6bbf12ff52fd369b493e4dd751817.tar.xz seaweedfs-077f831749e6bbf12ff52fd369b493e4dd751817.zip | |
Merge pull request #2550 from chrislusf/metadata_follow_with_client_id
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.go | 2 |
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{ |
