diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-06-05 01:30:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-06-05 01:30:24 -0700 |
| commit | ede876cfdb0116557dd197a7951957dab6745c24 (patch) | |
| tree | 50bab90cbf757bb0ad6b3239ed938dfd8d55874e /weed/shell/command_ec_common.go | |
| parent | b9e138713c8e2f53cf96132b5ff077ded67c5c20 (diff) | |
| download | seaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.tar.xz seaweedfs-ede876cfdb0116557dd197a7951957dab6745c24.zip | |
periodic scripts exeuction from leader master
Diffstat (limited to 'weed/shell/command_ec_common.go')
| -rw-r--r-- | weed/shell/command_ec_common.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_ec_common.go b/weed/shell/command_ec_common.go index b5560b560..4c53ba43b 100644 --- a/weed/shell/command_ec_common.go +++ b/weed/shell/command_ec_common.go @@ -14,7 +14,7 @@ import ( "google.golang.org/grpc" ) -func moveMountedShardToEcNode(ctx context.Context, commandEnv *commandEnv, existingLocation *EcNode, collection string, vid needle.VolumeId, shardId erasure_coding.ShardId, destinationEcNode *EcNode, applyBalancing bool) error { +func moveMountedShardToEcNode(ctx context.Context, commandEnv *CommandEnv, existingLocation *EcNode, collection string, vid needle.VolumeId, shardId erasure_coding.ShardId, destinationEcNode *EcNode, applyBalancing bool) error { fmt.Printf("moved ec shard %d.%d %s => %s\n", vid, shardId, existingLocation.info.Id, destinationEcNode.info.Id) @@ -124,11 +124,11 @@ type EcNode struct { freeEcSlot int } -func collectEcNodes(ctx context.Context, commandEnv *commandEnv) (ecNodes []*EcNode, totalFreeEcSlots int, err error) { +func collectEcNodes(ctx context.Context, commandEnv *CommandEnv) (ecNodes []*EcNode, totalFreeEcSlots int, err error) { // list all possible locations var resp *master_pb.VolumeListResponse - err = commandEnv.masterClient.WithClient(ctx, func(client master_pb.SeaweedClient) error { + err = commandEnv.MasterClient.WithClient(ctx, func(client master_pb.SeaweedClient) error { resp, err = client.VolumeList(ctx, &master_pb.VolumeListRequest{}) return err }) |
