diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-07-09 02:22:48 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-07-09 02:22:48 -0700 |
| commit | 50d351944f68effeac854acde70ef5829bb6b948 (patch) | |
| tree | f24aaf0de7121701fd6372d83ad0db147f18a38f /weed/command/filer.go | |
| parent | d0982cafa7383a025a7a0c17926bec78a1376b62 (diff) | |
| download | seaweedfs-50d351944f68effeac854acde70ef5829bb6b948.tar.xz seaweedfs-50d351944f68effeac854acde70ef5829bb6b948.zip | |
filer add data center option
Diffstat (limited to 'weed/command/filer.go')
| -rw-r--r-- | weed/command/filer.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/filer.go b/weed/command/filer.go index cddad4c0d..279fc3fbb 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -31,6 +31,7 @@ type FilerOptions struct { maxMB *int secretKey *string dirListingLimit *int + dataCenter *string } func init() { @@ -47,6 +48,7 @@ func init() { f.maxMB = cmdFiler.Flag.Int("maxMB", 32, "split files larger than the limit") f.secretKey = cmdFiler.Flag.String("secure.secret", "", "secret to encrypt Json Web Token(JWT)") f.dirListingLimit = cmdFiler.Flag.Int("dirListLimit", 1000, "limit sub dir listing size") + f.dataCenter = cmdFiler.Flag.String("dataCenter", "", "write to volumes in this data center") } var cmdFiler = &Command{ @@ -99,6 +101,7 @@ func (fo *FilerOptions) start() { MaxMB: *f.maxMB, SecretKey: *f.secretKey, DirListingLimit: *f.dirListingLimit, + DataCenter: *f.dataCenter, }) if nfs_err != nil { glog.Fatalf("Filer startup error: %v", nfs_err) |
