diff options
| author | yourchanges <yourchanges@gmail.com> | 2015-02-03 14:03:17 +0800 |
|---|---|---|
| committer | yourchanges <yourchanges@gmail.com> | 2015-02-03 14:03:17 +0800 |
| commit | 55c40997b1cd9e33eaa841b8abf5e1678773dd1c (patch) | |
| tree | 58bf1d5986948770b14be49333654286a0bf68be /go/weed/benchmark.go | |
| parent | 133181bbe4ef1676bb12d13574be4314df1b0ac2 (diff) | |
| parent | b13bcdaedac8af6b433ce39172ffdc33e6ef85f9 (diff) | |
| download | seaweedfs-55c40997b1cd9e33eaa841b8abf5e1678773dd1c.tar.xz seaweedfs-55c40997b1cd9e33eaa841b8abf5e1678773dd1c.zip | |
Merge pull request #5 from chrislusf/master
merge
Diffstat (limited to 'go/weed/benchmark.go')
| -rw-r--r-- | go/weed/benchmark.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/weed/benchmark.go b/go/weed/benchmark.go index f4f0b1874..04ab4307d 100644 --- a/go/weed/benchmark.go +++ b/go/weed/benchmark.go @@ -203,7 +203,7 @@ func writeFiles(idChan chan int, fileIdLineChan chan string, s *stat) { fileSize := int64(*b.fileSize + rand.Intn(64)) fp := &operation.FilePart{Reader: &FakeReader{id: uint64(id), size: fileSize}, FileSize: fileSize} if assignResult, err := operation.Assign(*b.server, 1, "", *b.collection, ""); err == nil { - fp.Server, fp.Fid, fp.Collection = assignResult.PublicUrl, assignResult.Fid, *b.collection + fp.Server, fp.Fid, fp.Collection = assignResult.Url, assignResult.Fid, *b.collection if _, err := fp.Upload(0, *b.server); err == nil { if rand.Intn(100) < *b.deletePercentage { s.total++ @@ -251,7 +251,7 @@ func readFiles(fileIdLineChan chan string, s *stat) { if _, now_ok := b.vid2server[vid]; !now_ok { if ret, err := operation.Lookup(*b.server, vid); err == nil { if len(ret.Locations) > 0 { - server = ret.Locations[0].PublicUrl + server = ret.Locations[0].Url b.vid2server[vid] = server } } |
