From b5c29e25aa76be758f3cbac8d6d8860476f75f0e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 26 Sep 2012 02:34:43 -0700 Subject: [PATCH] fix --- weed-fs/src/cmd/weed/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed-fs/src/cmd/weed/volume.go b/weed-fs/src/cmd/weed/volume.go index 9f73df942..798fe6995 100644 --- a/weed-fs/src/cmd/weed/volume.go +++ b/weed-fs/src/cmd/weed/volume.go @@ -135,7 +135,7 @@ func PostHandler(w http.ResponseWriter, r *http.Request) { ret := store.Write(volumeId, needle) if ret > 0 || !store.HasVolume(volumeId) { //send to other replica locations if r.FormValue("type") != "standard" { - if lookupResult, lookupErr := operation.Lookup(*server, volumeId); lookupErr == nil { + if lookupResult, lookupErr := operation.Lookup(*masterNode, volumeId); lookupErr == nil { sendFunc := func(background bool) { postContentFunc := func(location operation.Location) bool { operation.Upload("http://"+location.Url+r.URL.Path+"?type=standard", filename, bytes.NewReader(needle.Data))