diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2019-11-10 11:38:21 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-10 11:38:21 -0800 |
| commit | 5a8c3e4cf93a36bdc35cc3a9c9bfcbbe9857fefe (patch) | |
| tree | b571854a02711d5039f0e5a8cf2a0872f77a7afc /weed/operation/assign_file_id.go | |
| parent | c34ffed43f9e6afde139c78a723fc56d843e03d4 (diff) | |
| parent | 61fa485700f15b537611dfd399890a63e4b61601 (diff) | |
| download | seaweedfs-5a8c3e4cf93a36bdc35cc3a9c9bfcbbe9857fefe.tar.xz seaweedfs-5a8c3e4cf93a36bdc35cc3a9c9bfcbbe9857fefe.zip | |
Merge pull request #1112 from song-zhang/add-assign-volume-number
add volume number param in assign operation
Diffstat (limited to 'weed/operation/assign_file_id.go')
| -rw-r--r-- | weed/operation/assign_file_id.go | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/weed/operation/assign_file_id.go b/weed/operation/assign_file_id.go index 4c50eaa26..2971cddbb 100644 --- a/weed/operation/assign_file_id.go +++ b/weed/operation/assign_file_id.go @@ -11,13 +11,14 @@ import ( ) type VolumeAssignRequest struct { - Count uint64 - Replication string - Collection string - Ttl string - DataCenter string - Rack string - DataNode string + Count uint64 + Replication string + Collection string + Ttl string + DataCenter string + Rack string + DataNode string + WritableVolumeCount uint32 } type AssignResult struct { @@ -53,6 +54,7 @@ func Assign(server string, grpcDialOption grpc.DialOption, primaryRequest *Volum DataCenter: primaryRequest.DataCenter, Rack: primaryRequest.Rack, DataNode: primaryRequest.DataNode, + WritableVolumeCount: primaryRequest.WritableVolumeCount, } resp, grpcErr := masterClient.Assign(context.Background(), req) if grpcErr != nil { |
