diff options
| author | chrislu <chris.lu@gmail.com> | 2021-12-30 00:23:57 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2021-12-30 00:23:57 -0800 |
| commit | 5c87fcc6d28b230154db35cbe7735a5f1b84024f (patch) | |
| tree | accf7f2221083bb3aec27c5ba60b24570349b85d /weed/command/filer_remote_sync.go | |
| parent | fb434318e36ac8e78ab304bfd5421f110c10bdf1 (diff) | |
| download | seaweedfs-5c87fcc6d28b230154db35cbe7735a5f1b84024f.tar.xz seaweedfs-5c87fcc6d28b230154db35cbe7735a5f1b84024f.zip | |
add client id for all metadata listening clients
Diffstat (limited to 'weed/command/filer_remote_sync.go')
| -rw-r--r-- | weed/command/filer_remote_sync.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/filer_remote_sync.go b/weed/command/filer_remote_sync.go index 681ea35e9..d6ccf7b79 100644 --- a/weed/command/filer_remote_sync.go +++ b/weed/command/filer_remote_sync.go @@ -18,6 +18,7 @@ type RemoteSyncOptions struct { readChunkFromFiler *bool timeAgo *time.Duration dir *string + clientId int32 } var _ = filer_pb.FilerClient(&RemoteSyncOptions{}) @@ -41,6 +42,7 @@ func init() { remoteSyncOptions.dir = cmdFilerRemoteSynchronize.Flag.String("dir", "", "a mounted directory on filer") remoteSyncOptions.readChunkFromFiler = cmdFilerRemoteSynchronize.Flag.Bool("filerProxy", false, "read file chunks from filer instead of volume servers") remoteSyncOptions.timeAgo = cmdFilerRemoteSynchronize.Flag.Duration("timeAgo", 0, "start time before now, skipping previous metadata changes. \"300ms\", \"1.5h\" or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"") + remoteSyncOptions.clientId = util.RandomInt32() } var cmdFilerRemoteSynchronize = &Command{ |
