mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-17 09:42:29 +08:00
filer add data center option
This commit is contained in:
@@ -178,6 +178,7 @@ func (fs *FilerServer) AssignVolume(ctx context.Context, req *filer_pb.AssignVol
|
||||
Replication: req.Replication,
|
||||
Collection: req.Collection,
|
||||
Ttl: ttlStr,
|
||||
DataCenter: fs.option.DataCenter,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("assign volume: %v", err)
|
||||
|
||||
@@ -22,6 +22,7 @@ type FilerOption struct {
|
||||
MaxMB int
|
||||
SecretKey string
|
||||
DirListingLimit int
|
||||
DataCenter string
|
||||
}
|
||||
|
||||
type FilerServer struct {
|
||||
|
||||
Reference in New Issue
Block a user