suport uploading files to specific dataCenter

This commit is contained in:
sparklxb
2017-01-09 23:34:07 +08:00
parent 53cf1b4900
commit 66e7013dfe
3 changed files with 50 additions and 21 deletions

View File

@@ -126,7 +126,7 @@ func doEachCopy(fileOrDir string, host string, path string) bool {
}
results, err := operation.SubmitFiles(*copy.master, parts,
*copy.replication, *copy.collection,
*copy.replication, *copy.collection, "",
*copy.ttl, *copy.maxMB, copy.secret)
if err != nil {
fmt.Printf("Failed to submit file %s: %v", fileOrDir, err)